How do you get the actual value of the input identifier after sending it to Flask?
the form:
<form action="" method="post"> <input id = "number_one" type="text" name="comment"> <input type="submit" value = "comment"> </form>
like, I'm trying to say when the form is submitted (i.e. when you do this):
request.form.get("comment")
The value of the text field is passed. I cannot figure out how to get the id value.
So, when the form is submitted, we could then tell what form the information came from, because each form has a unique id . In this case, id number_one .
So, how can we get the actual literal id value, rather than text input?
source share