1
<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']?>;

我点击提交后没有任何输出,除了表单重置。

4

1 回答 1

5

更改<select id="skin_shade"><select name="skin_shade">?

于 2013-02-18T03:20:11.547 回答