How to do POST in HTML pages
Last modified by Leon Poon on 2021/03/23 13:15
Use your fav text editor and start a HTML file.
<!DOCTYPE html> <html> <body> <form method="POST" action="http://127.0.0.1:5000/"> <input type="text" name="my_key" /> <input type="submit" /> </form> </body> </html>
If you open this HTML file in a web browser, fill up the textbox and click "Submit", then your browser will POST your data to http://127.0.0.1:5000/.