post.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <form action="http://localhost:8080" method="post">
  5. <fieldset>
  6. <legend>Different fields type:</legend>
  7. Text field: <input type="text" name="text" /><br>
  8. <fieldset>
  9. <legend>Checkboxes:</legend>
  10. <input type="checkbox" name="checkbox1" value="check1" />checkbox1<br>
  11. <input type="checkbox" name="checkbox2" value="check2" />checkbox2<br>
  12. </fieldset>
  13. <br>
  14. <fieldset>
  15. <legend>Radio buttons:</legend>
  16. <input type="radio" name="radio" value="radio1" />radio1<br>
  17. <input type="radio" name="radio" value="radio2" />radio2<br>
  18. </fieldset>
  19. <select name="select">
  20. <option value="drop1">Drop1</option>
  21. <option value="drop2" selected>Drop2</option>
  22. <option value="drop3">Drop3</option>
  23. </select><br>
  24. <input type="submit" />
  25. </fieldset>
  26. </form>
  27. <br>
  28. <form action="http://localhost:8080" method="post" enctype="multipart/form-data">
  29. <fieldset>
  30. <legend>File upload:</legend>
  31. <input type="file" name="file2" /><br>
  32. <input type="submit" />
  33. </fieldset>
  34. </form>
  35. </body>
  36. </html>