How to do POST in HTML pages

Last modified by Leon Poon on 2018/12/24 17:49

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/.

Tags:
Created by Leon Poon on 2018/12/24 17:49
    

Need help?

If you need help with XWiki you can contact: