html5_form.html 747 B

123456789101112131415161718
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>HTML5 form attribute test</title>
  6. </head>
  7. <body>
  8. <form action="advanced_form_post.php" method="POST" id="test-form">
  9. <input name="first_name" type="text" value="not set">
  10. <input name="other_field" type="text" value="not submitted" form="another">
  11. <input type="submit" value="Submit separate form" form="another">
  12. <input type="submit" value="Submit in form">
  13. </form>
  14. <input name="last_name" type="text" form="test-form" value="not set">
  15. <button type="submit" form="test-form" name="submit_button" value="test">Submit outside form</button>
  16. <form id="another" method="post" action="advanced_form_post.php"></form>
  17. </body>
  18. </html>