ahmed19981973

Untitled

Feb 21st, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. ?>
  5. <!DOCTYPE html>
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9.     <meta charset="utf-8">
  10.     <title>Page</title>
  11. </head>
  12. <body>
  13.     <div>
  14.         <form>
  15.             <label>day  </label><select name ="day">
  16.                 <?php
  17.                 for ($i=1; $i <7 ; $i++) {
  18.                     echo "<option name =day value='$i'>".$i."</option>";
  19.                 }
  20.                 ?>
  21.             </select>
  22.              <label>month  </label><select name ="month">
  23.                 <?php
  24.                     for ($i=1; $i <12 ; $i++)
  25.                     echo "<option name ='month' value='$i' >".$i."</option>";
  26.                 ?>
  27.             </select>
  28.                  <label>year  </label><select name ="year">
  29.                 <?php
  30.                     for ($i=1900; $i <2019 ; $i++) {
  31.                     echo "<option name ='year' value='$i' >".$i."</option>";
  32.                 }
  33.                 ?>
  34.             </select>
  35.             <input type="submit" name="submit">
  36.  
  37.        </form>
  38.     </div>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment