Hello,
I have tried to get data from a database and then populate a drop down(select) box with the data.The menu is in a form which i am submitting and the action ASP displays the data selected from the menu.The problem is that the data displayed is only the first word of the selected data.
Example if "hello world" is selected, only hello gets displayed.
The code i have used for the select is
while not rs.eof
response.write "<option value=" & rs(0) & ">" & rs(0) & "</option>"
rs.movenext
wend
Please help me on how i can get the whole option selected.
Cheers
I have tried to get data from a database and then populate a drop down(select) box with the data.The menu is in a form which i am submitting and the action ASP displays the data selected from the menu.The problem is that the data displayed is only the first word of the selected data.
Example if "hello world" is selected, only hello gets displayed.
The code i have used for the select is
while not rs.eof
response.write "<option value=" & rs(0) & ">" & rs(0) & "</option>"
rs.movenext
wend
Please help me on how i can get the whole option selected.
Cheers