<form name="makeup" action="index.php" method="post">
<select id="skin_shade">
<option value="skin_shade_1">Dark</option>
<option value="skin_shade_2">Light</option>
</select></br>
Acne:<input type="checkbox" value="acne"/></br>
Oil:<input type="checkbox" value="oily"/></br>
Straight Hair:<input type="checkbox" value="straight"/></br>
<input type="submit" value="Submit"/>
</form>
<?php
echo $_POST['skin_shade']?>;
我点击提交后没有输出,除了表单重置。
答案 0 :(得分:5)
将<select id="skin_shade">
更改为<select name="skin_shade">
?