Discussion Locked

Dynamically Adding Options in <select>

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi friends,

can u pls tell me how to Dynamically Add Options in the . I am using Netscape. I cud do it in IE, but not in Netscape.

bye,
Nise

3 replies

by prem130373

Hi,

You can do this by using VB Script. If you are getting the data from the database to get the data then this will get you the options in

--- Below code goes on the top of the page after connection is set to the database ----
<%
set ABC = server.CreateObject("ADODB.Recordset")
sqlstr = "Select ID, Name from TempMaster"
ABC.Open sqlstr,conn
%>

---- HTML Code for -------

Select One
<%
do until getproject.EOF
%>
"><%=ABC("Name")%>

<%
ABC.MoveNext
loop
ABC.Close
%>

I hope this will help.

This discussion is closed to new replies.