So, I need to grab an input value from an html form and use it in flask. Here's an example of python and html for reference:
python:
@app.route("/post_field", methods=["GET", "POST"])
def need_input():
for key in request.form["post_field"]:
if key == "value1":
#do the thing I want#
html:
<form action="/post_field" method="post">
<input type="hidden" name="this_name" value="value1" />
<input type="submit" value="Press Me!"/>
</form>
I get a 400 error when I click that Press Me input.