N
N
nano_e_t_42016-07-24 13:35:06
Flask
nano_e_t_4, 2016-07-24 13:35:06

How to catch button-value?

Hello everyone
, plz tell me how to catch butto-value using flask?
in html code like this:

...bla-bla..
<form action="script.name" method="post">
<input type="button" value="one" name="name">
<input type="submit" value="Send">

the value of button is changed by means of javascript.
when you try to catch the button via request.form['name'] flask swears and spits
If wider, then it's something like a counter that changes when you click

Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question