I would like to make a ListBox that can send 2 variables (called category and order) to shopping.php by GET method with single click on ListBox.
So that shopping.php can use the variables $_GET['category']
and $_GET['order']
How can I do that?
<form method="GET">
<select name="XXX" onchange="javascript: submit()">
<option value="" selected="">Please select here</option>
<option value="shopping.php?category=Dictionary&order=bookTitle">Order by book title</option>
<option value="shopping.php?category=Dictionary&order=price">Order by price</option>
</select>
</form>