Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list boxes

Status
Not open for further replies.

Ricjd

Programmer
Sep 12, 2002
104
GB
is there any where i can load data into a list box from a database?
 
if your recordset name is rs and contains the "id" and "name" fields , do the following :
Code:
<select name=&quot;myName&quot;>
<% while not rs.eof
   response.write (&quot;<option value='&quot; & rs.fields(&quot;id&quot;) & &quot;'>&quot; & rs.fields(&quot;name&quot;) & &quot;</option>&quot;)
   wend
%>
</select>

hope that helps Water is not bad as soon as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top