php - How to send a multiple variables using ListBox by GET method -


i make listbox can send 2 variables (called category , order) shopping.php method single click on listbox.

so shopping.php can use variables $_get['category'] , $_get['order']

how can 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 book title</option>   <option value="shopping.php?category=dictionary&order=price">order price</option> </select> </form> 

change code to

<form method="get"> <input type="hidden" name="category" value="dictionary"> <select name="order" onchange="javascript: submit()">   <option value="" selected="">please select here</option>   <option value="booktitle">order book title</option>   <option value="price">order price</option> </select> </form> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -