Hi,
I am trying to create a page that does a query on an sql database then stores those values in a select list. Once the user selects a value from that list, I want to query the same database with the value that was selected and display those on the same page.
So far, my first record set and population of the first select box looks as so:
<%
Dim RS
Dim RSChild
set RS = con.Execute ("select" _
& " INDEX" _
& " ,NAME" _
& " ,URL" _
& " ,TARGET" _
& " ,OVERRIDE_SECURITY" _
& " ,PARENTID" _
& " ,ID" _
& " from DW.INTRAMENU MNU" _
& " INNER JOIN DW.INTRAMENULINKAGE LNK" _
& " ON MNU.INDEX = LNK.ID" _
& " WHERE PARENTID = 0"
%>
<Form Name="url" target="url2.asp" method="post" OnLoad=("Children"
>
<Select Name="Parent" onChange="(Children)">
<OPTION value=1 SELECTED>None Selected</OPTION>
<%
Do until RS.EOF
%>
<OPTION VALUE="<%Response.write RS("ID"
%>"><%Response.write RS("NAME"
%>
</OPTION>
<%
RS.MoveNext
Loop
%>
</SELECT>
Thanks!!!!![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
I am trying to create a page that does a query on an sql database then stores those values in a select list. Once the user selects a value from that list, I want to query the same database with the value that was selected and display those on the same page.
So far, my first record set and population of the first select box looks as so:
<%
Dim RS
Dim RSChild
set RS = con.Execute ("select" _
& " INDEX" _
& " ,NAME" _
& " ,URL" _
& " ,TARGET" _
& " ,OVERRIDE_SECURITY" _
& " ,PARENTID" _
& " ,ID" _
& " from DW.INTRAMENU MNU" _
& " INNER JOIN DW.INTRAMENULINKAGE LNK" _
& " ON MNU.INDEX = LNK.ID" _
& " WHERE PARENTID = 0"
%>
<Form Name="url" target="url2.asp" method="post" OnLoad=("Children"
<Select Name="Parent" onChange="(Children)">
<OPTION value=1 SELECTED>None Selected</OPTION>
<%
Do until RS.EOF
%>
<OPTION VALUE="<%Response.write RS("ID"
</OPTION>
<%
RS.MoveNext
Loop
%>
</SELECT>
Thanks!!!!
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)