2014-03-24 12:29
浏览 72


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>
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题