我试过像这样的HTML:
<form method="post">
<select id="select" size="2 ">
<option value="3">test</option>
<option value="4">test2</option>
</select>
<button type="submit" value="execute">
</form>
如何在post数组中获得3或4的值
$_POST['select']
答案 0 :(得分:24)
添加名称标签......
<select id="select" name="select" size="2 ">