I am working on the my final project by doing a to do list.
I created a dynamic table displaying all my tasks and I added a menu on which you can select a new status. Unfortunately I can't manage to get the value from this drop down list!

My HTML
```HTML
<td><select name= "task_action" method="POST" action="/">
      {% for action in actions %}
        <option value="{{action}}" selected='selected'>{{action}}</option>
      {% endfor %}
    </select>
</td>
```
After selecting a new value in my drop down menu and clicking on submit button I am willing to update my database so here is my py code

My app py:
```python
db.execute("UPDATE todolist SET status = :status WHERE id = :task_id",
            task_id=request.form['submit_button'],
            status=request.form.get('task_action'))
```

I also tried with 
status=request.form['task_action']but it doesn't work, I get Bad Request.

I found this https://stackoverflow.com/questions/10434599/how-to-get-data-received-in-flask-request/16664376#16664376 but still I couldn't solve my issue.

Thanks for your help!