Input value isn’t sent when submitting form
- html
- input
- form
- flask
When trying to access submitted form data, request.form
(in Flask, applies to any framework though) will not contain the value of one of the inputs.
An input needs a name
attribute or the browser will not send its value when submitting the form.
<input type="text" name="salad"/>
request.form['salad']