I have search that gets input from 3 drop-down boxes and one text box. The results of the search are displayed 5 at a time and therefore I need the results of the search to be displayed in the drop-down box as the user pages through the search results. At the moment I have am using request.querystring to display what was selected, but this is not correct as two copies of the selected option as displayed.
This is what I have:
<b>Unit Name</b>
<select size="1" name="D1" onchange = "unitsubmit()">
<option selected><%response.write request.querystring ("D1"
<%
'first drop down
If RS.EOF and RS.BOF Then
Response.Write "There are 0 records."
Else
RS.MoveFirst
While Not RS.EOF%>
<option><%Response.Write RS.Fields("UnitName"
<%RS.MoveNext
Wend
End If
RS.Close
%>
</select><br>
<font size="2">
<b>Group Name</b>
<select size="1" name="D2">
<option selected><%response.write request.querystring ("D2"
<%
'second drop down box
If RS1.EOF and RS1.BOF Then
Response.Write "There are 0 records."
Else
RS1.MoveFirst
While Not RS1.EOF%>
<option><%Response.Write RS1.Fields("GroupName"
<%RS1.MoveNext
Wend
End If
RS1.Close
%>
</select><br>
<font size="2">
<b>Problem Type</b>
<select size="1" name="D3">
<option selected><%response.write request.querystring ("D3"
<option>Batch</option>
<option>Online</option>
<option>System</option>
<option>Other</option>
</select><br><br>
<input type="text" name="T1" size="32" value = "<%response.write request.querystring ("T1"
<input type="submit" value="GO" name="B3"><br><br>
Any suggestions would be appreciated!