I am retreiving a recordset into a web page from an access db and want to build a small jump menu to allow users to sort the recordset by category (one of the columns retreived from the db).
The index_jump page runs the SQL that retreives the recordset from the db to display. Basically I want to refresh this page and pass a number/parameter to the SQL query which will relate to the ORDER BY clause of the SQL each time an selection is made.
I have a form(form1) with a jump menu in it.
<form name="form1" method="post" action="index_jump.asp">
<select name="menu1" onChange="MM_jumpMenu'parent',this,0)">
<option value="1">label1</option>
<option value="2">label2</option>
<option value="3">label3</option>
</select>
</form>
does not refresh the page as expected - it's passing the values across in the URL - so I get a blank page but say if I pressed option 2 it will show mydomain/2
if I make the options =
<option value="index_jump">label1</option> the page does refresh. But then how do I pass values across to the SQL ?
This is the first hurdle which I'm stumbling on.
The index_jump page runs the SQL that retreives the recordset from the db to display. Basically I want to refresh this page and pass a number/parameter to the SQL query which will relate to the ORDER BY clause of the SQL each time an selection is made.
I have a form(form1) with a jump menu in it.
<form name="form1" method="post" action="index_jump.asp">
<select name="menu1" onChange="MM_jumpMenu'parent',this,0)">
<option value="1">label1</option>
<option value="2">label2</option>
<option value="3">label3</option>
</select>
</form>
does not refresh the page as expected - it's passing the values across in the URL - so I get a blank page but say if I pressed option 2 it will show mydomain/2
if I make the options =
<option value="index_jump">label1</option> the page does refresh. But then how do I pass values across to the SQL ?
This is the first hurdle which I'm stumbling on.