在用户点击提交按钮后保留下拉选择 我只是在第 1-4 天工作
<?PHP
$day = array( );
$day[0] = "1";
$day[1] = "2";
$day[2] = "3";
$day[3] = "4";
$days=$day;
?>
<select name="day">
<option value="day">Day</option>
<?PHP
for ($days = 0; $days < 4; $days++) {
print"<option value='$day[$days]'>$day[$days]</option>";
}
?>
</select>