So, I am very new to flask and front end programming..
I have a form: like this
<form action="{{ url_for('search') }}" method="post">
Showing values for: <input type="text" name="name" value={{ name }} disabled><br><br>
<select name="movie" width="300px">
{% for movie in movie_list %}
<option value="{{ movie }}" SELECTED>{{ movie }}</option>
{% endfor %}
</select>
<input type="submit" value="Recommend!!">
</form>
And this is how I am capturing in flask
@app.route('/web/search', methods=['post','get'])
def search():
print request.method, request.form
So, you can see, that in html form.. I have two fields..
name (text box) which already have a default value set
and option_list
And, my intention is, when the user presses "submit", both these fields are received in backend
But the print statement shows..
POST ImmutableMultiDict([('movie', u'foobar')])
But I dont see the name field?
How do I fix this?