index.html 791 B

12345678910111213141516171819202122232425262728293031323334
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>The jQuery Example</title>
  5. <h2>jQuery-AJAX in FLASK. Execute function on button click</h2>
  6. </head>
  7. <body>
  8. <pre>{{result}}</pre>
  9. <pre>{{result}}</pre>
  10. <pre>{{result}}</pre>
  11. <form method="post" action="{{ url_for('SomeFunction') }}">
  12. <input type="text" name="user">
  13. <input type="submit" name="send" value="送出">
  14. </form>
  15. <form method="post" action="{{ url_for('fuck') }}">
  16. <input type="text" name="axv">
  17. <input type="submit" name="send" value="送出">
  18. </form>
  19. <form method="post" action="{{ url_for('check_mosquitto') }}">
  20. <input type="text" name="user">
  21. <input type="submit" name="send" value="送出">
  22. </form>
  23. </body>
  24. </html>