A simple way to handle form submissions from static websites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
914 B

4 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Test-Form</title>
  5. </head>
  6. <body>
  7. <form action="//localhost:8080" method="post">
  8. <input type="hidden" name="_to" value="test@example.com">
  9. <input type="hidden" name="_formName" value="Test Form">
  10. <input type="hidden" name="_redirectTo" value="https://example.com">
  11. <label for="TEmail" style="display: none;">Test</label>
  12. <input id="TEmail" type="email" name="_t_email" style="display: none;">
  13. <label for="Email">Email</label>
  14. <br />
  15. <input id="Email" type="email" name="_replyTo" required>
  16. <br />
  17. <label for="Name">Name</label>
  18. <br />
  19. <input id="Name" type="text" name="Name" required>
  20. <br />
  21. <label for="Message">Message</label>
  22. <br />
  23. <textarea id="Message" name="Message"></textarea>
  24. <br />
  25. <input type="submit" value="Send">
  26. </form>
  27. </body>
  28. </html>