Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ?>
- <!DOCTYPE html>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Page</title>
- </head>
- <body>
- <div>
- <form>
- <label>day </label><select name ="day">
- <?php
- for ($i=1; $i <7 ; $i++) {
- echo "<option name =day value='$i'>".$i."</option>";
- }
- ?>
- </select>
- <label>month </label><select name ="month">
- <?php
- for ($i=1; $i <12 ; $i++)
- echo "<option name ='month' value='$i' >".$i."</option>";
- ?>
- </select>
- <label>year </label><select name ="year">
- <?php
- for ($i=1900; $i <2019 ; $i++) {
- echo "<option name ='year' value='$i' >".$i."</option>";
- }
- ?>
- </select>
- <input type="submit" name="submit">
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment