I know this is a simple question, but I am very new to asp.
How do I add the values from a recordset to a select box.
I know VB so I tried to use add item but that didn't work.
this is what I got so far.
How do i get write the rst to the locations select box?
<DIV align="center">
<SELECT name="locations">
<option>Select a Location</option>
<INPUT type="submit", value="Go"/>
</DIV>
<%
DO while not rstlocations.EOF
Response.Write (rstlocations("loc_cd")
response.write("</br>"
rstlocations.MoveNext
loop
How do I add the values from a recordset to a select box.
I know VB so I tried to use add item but that didn't work.
this is what I got so far.
How do i get write the rst to the locations select box?
<DIV align="center">
<SELECT name="locations">
<option>Select a Location</option>
<INPUT type="submit", value="Go"/>
</DIV>
<%
DO while not rstlocations.EOF
Response.Write (rstlocations("loc_cd")
response.write("</br>"
rstlocations.MoveNext
loop