I have the following select box. It will retrieve a list from my database, but I can't figure out how to fire off an event once a selection is made.
I need the user to make a selection from the box, and then
use that selection place the search text in a url something like:
FROM DROP DOWN.
I guess Id have to put a button beside the drop down and do some kind of on_click, but Ive tried a couple of ways and cant make any progress.
thanks for any help...
*************************************
Select Unit:
<%
dim cboconn
dim cbors
dim cbosql
Set cboConn = server.CreateObject("Adodb.Connection"
cboConn.Open "Provider=MSDAORA;Data Source=Live; " &_
"User ID=xxx;Password=xxx;"
cboSQL = "Select distinct living_unit_code1 from v_living_units"
set mData = cboConn.Execute(cboSQL)
Response.write "<select name=Unit>"
Do while not mData.EOF
Response.write "<option value=" & mData("living_unit_code1"
& ">" & mData("living_unit_code1"
mData.MoveNext
Loop
Response.write "</select>"
%>
I need the user to make a selection from the box, and then
use that selection place the search text in a url something like:
FROM DROP DOWN.
I guess Id have to put a button beside the drop down and do some kind of on_click, but Ive tried a couple of ways and cant make any progress.
thanks for any help...
*************************************
Select Unit:
<%
dim cboconn
dim cbors
dim cbosql
Set cboConn = server.CreateObject("Adodb.Connection"
cboConn.Open "Provider=MSDAORA;Data Source=Live; " &_
"User ID=xxx;Password=xxx;"
cboSQL = "Select distinct living_unit_code1 from v_living_units"
set mData = cboConn.Execute(cboSQL)
Response.write "<select name=Unit>"
Do while not mData.EOF
Response.write "<option value=" & mData("living_unit_code1"
mData.MoveNext
Loop
Response.write "</select>"
%>