classic asp passing dropdown selected value
Any help appreciated on this as I'm stuck at this point after many confusing hours. This is on a complex classic asp page and I'd rather keep the changes minimal. I've had to add a drop down filter box at the top of the page, further down a recordset loops to load records. I'm looping here to load the filter items into a dictionary, but I have two serious issues.
1. how to get the value selected out of the dropdown selector and
2. how to pass it as a parameter back to the same page
I'm using the action=pagename in the form below, but I've tried with and without this to no effect. The page is not reloading at this point, and when it occasionally did there was no parameter passed in chrome - but IE got the parameter (this is not also not working).
<form action="emplist_mainten.asp" method="get">
<Select id="FilterDepartment" name="FilterDepartment" onchange="self.location=self.location+'?FilterDepa rtment='+FilterDepartment.options[FilterDepartment.selectedIndex].text;>
<% dim i,a,s
For i = 0 To DeptDict.Count -1 %>
<option value="<%= (a(i)) %>"> <%= (a(i)) %></option>
<% Next %>
Thanks for any suggestions!