我有一個示例代碼:如何更改鏈接提交表單時
$category_id = $_POST['category_id'];
<form action="search.php&category_id=$category_id" method="post">
<p class="categories">
<select name="category_id">
<option value="1">Category 1</option>
<option value="2">Category 2</option>
</select>
</p>
<p class="submit">
<input class="button" type="submit" value="Tìm game" />
</p>
</form>
當我提交表單URL是search.php&category_id=0
如何解決這個問題,網址是search.php&category_id=1 // OR 2