|
|
|
|
|
| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
help needed urgently on displaying contents of database in combo box,on web page |
From: |
Archana Holla |
Date: |
4/17/2001 12:19:08 PM |
IP: |
202.86.157.79 |
i need help about how to display contents od a database on a combo box in a html page on my website(it's a part of my project work)
i've written the code for it,but any HTML tag before the SELECT tag causes problem.No element(default)is displayed in the combo box(the drop down button has to be clicked to see the contents)
The code behaves differently when the select tag is the first tag.PLEASE CHECK THE OUTPUT OF THE CODE:
<!-- metadata type="typelib" file="c:\program files\common files\system\ado\msado15.dll"-->
<%@ language=VBScript %>
<% option explicit %>
<html>
<head>
<title>USER FORM</title>
</head>
<body>
<form action="process.asp" method="post">
NAME : <input type="text" size="30" name="strUserName" value="<%session("strUserName")%>"><br>
Email: <input type="text" size="30" name="strEmail" value="<%session("strEmail")%>"><br>
<%
dim i
dim arr(3)
arr(0)="archana"
arr(1)="pallavi"
arr(2)="ancita"
%>
<select name="strProductName">
<% for i=0 to 2%>
<option value="<%=arr(i)%>"><%=arr(i)%></option>
<%
next
%>
</select><br>
<input type="submit" value="SUBMIT"><br>
</form>
</body>
</html>
</form>
</body>
</html>
I'VE |
Follow Up - Re: help needed urgently on displaying contents of database in combo box,on web page - J. Paul Schmidt 5/16/2001 3:00:52 AM
|
|

|
|
|
|
|
|
|
|
|
|