Correction status:qualified
Teacher's comments:
代码如下:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>0417作业</title> </head> <body> </body> </html> <?php echo '<p>选择你的生日</p>'; echo '<hr color="red">'; $years = range(1980,2000); echo '<select name="year">'; foreach ($years as $value) { echo '<option value="'.$value.'">'.$value.'</option>'; } echo '</select>'; echo ' '; $months = range(1,12); echo '<select name="month">'; foreach ($months as $value) { echo '<option value="'.$value.'">'.$value.'</option>'; } echo '</select>'; echo ' '; $days = range(1,30); echo '<select name="day">'; foreach ($days as $value) { echo '<option value="'.$value.'">'.sprintf('%02d',$value).'</option>'; } echo '</select>'; ?>
点击 "运行实例" 按钮查看在线实例