How To Include The Value Of A In Post Request Within A Flask App?
I am trying to create a login-form in HTML that is supposed to send the values of four inputs with type='button' to a FLASK app backend in a post request, after a button of type='s
Solution 1:
A button's name=value pair is only posted to the server if it is used to submit a form. That can only happen if it is type="submit"
(the default).
Setting type="button"
indicates that the button has no built-in functionality (i.e. it will only do what JavaScript tells it to do) so it can't submit the form.
Change the type
attribute if you want the button to submit the form.
Use a <input type="hidden">
if you want to submit data when a form is submitted but not link that data to the clicking of a specific button.
Post a Comment for "How To Include The Value Of A In Post Request Within A Flask App?"