Guest User

Untitled

a guest
Feb 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. if (!empty($_POST['itemname']))
  3. {
  4. echo "<pre>";
  5. var_dump($_POST);
  6. echo "</pre>";
  7. }
  8. ?>
  9. <hr />
  10. <form action="" method="post">
  11. <?php
  12. for ($i=1; $i<=5;$i++)
  13. {
  14. echo <<< EOF
  15. <h4>Item #${i}</h4>
  16. Name: <input name="itemname[]" type="text" value="karra" size="" maxlength="" />
  17. Type: <select name="itemtype[]">
  18. <option value="datetime">datetime</option>
  19. <option value="int">int</option>
  20. <option value="varchar">varchar</option>
  21. </select>
  22. EOF;
  23. }
  24. ?>
  25. <p><input type="submit" value="Continue &rarr;" /></p>
  26. </form>
Add Comment
Please, Sign In to add comment