I need to populate a drop down box in ASP with an array. Is this possible and what is the code to do this. Also, how do I know what the array reference number would be for a the user's selection? Any help would be appreciated. Thanks.
response.write "<SELECT>"<br>for i = 0 to ubound(a)<br> response.write "<OPTION VALUE=" & i & ">" & a(i) _<br> & "</OPTION>"<br>next<br>response.write "</SELECT>"<br><br>Since you're setting the value of each item to be the array index, that's the value you'll get when the item is selected.<br><br> <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.