我有一个示例代码:
<form action="index.php" method="get">
<select name="id">
<option value="1">One</option>
<option value="2">Two</option>
</select>
<input type="submit" value="submit" name="submit" />
</form>
当我提交表单时 url 是 " index.php?id=1
" // 或index.php?id=2
=> 如何解决它是结果 " index.php?id=1&name=One
" // 或index.php?id=2&name=Two