Answer the question
In order to leave comments, you need to log in
Working with form in Python?
Hello. I am slowly learning Python. Interested in how to collaborate with Python via index.html.
There is html:
<form action="py/t.py" method="POST">
<input type="text" />
<input type="submit" value="OK" />
</form>
code
Answer the question
In order to leave comments, you need to log in
You need an http server. Let's say it comes with the Flask framework. If you swing more abruptly - Django. But if it's quite simple - turn here or here to the third version.
If you forget about frameworks, then it is better to use the GET method - then it is easier to parse the data than with the POST method. They will all be in the first line sent by the client to the server. There you can already get by with several split
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question