I hope this is an easy one for you guys. I have a search page that contains 3 jump menus, the jump menus are used as lists for search criteria, and the lists are populated from a database. The lists also changes depending on what the user chooses. So if a user chooses Honda on the first list, the second list shows, accord, civic, CRV, etc... I think you get the picture.
My problem is that the jump menus reset themselves after selecting from the lists. for example I select honda, the jump menu does it's thing, the page reloads, the second jump menu populates correctly, but the first jump menu resets to the first list option which is, Select Make. What do I need to do so that my selection stays after the page reloads?
here is the code for the first jump menu.
<select name="Make" onChange="MM_jumpMenu('self',this,0)">
<option selected value="Condition">Choose Make</option>
<%
While (NOT rsMakeType.EOF)
%>
<option value="template.asp?Condition=<%=(rsPartType.Fields.Item("MakeType"
.Value)%>"><%=(rsPartType.Fields.Item("MakeType"
.Value)%></option>
<%
rsMakeType.MoveNext()
Wend
If (rsMakeType.CursorType > 0) Then
rsMakeType.MoveFirst
Else
rsMakeType.Requery
End If
%>
</select>
Thanks Guys,
Jovix
My problem is that the jump menus reset themselves after selecting from the lists. for example I select honda, the jump menu does it's thing, the page reloads, the second jump menu populates correctly, but the first jump menu resets to the first list option which is, Select Make. What do I need to do so that my selection stays after the page reloads?
here is the code for the first jump menu.
<select name="Make" onChange="MM_jumpMenu('self',this,0)">
<option selected value="Condition">Choose Make</option>
<%
While (NOT rsMakeType.EOF)
%>
<option value="template.asp?Condition=<%=(rsPartType.Fields.Item("MakeType"
<%
rsMakeType.MoveNext()
Wend
If (rsMakeType.CursorType > 0) Then
rsMakeType.MoveFirst
Else
rsMakeType.Requery
End If
%>
</select>
Thanks Guys,
Jovix