Post values from an HTML form and access them in a Flask view

Your input doesn’t have a name attribute. That is what the client will pass along to the server. Flask will raise a 400 error if you access a form key that wasn’t submitted.

<input name="my_input" id="my_input" type="text" value="{{ email }}">

Leave a Comment