the button value only shows up in your URL if your form method=GET which 
isn't recommended in any case where form submission changes your 
application's state (i.e. if it results in a database update) or if the 
submitted info is sensitive, or long

better solution is to give both buttons the same name but different values, 
and check the value in the controller method that handles the route

jay

On Friday, October 30, 2015 at 9:44:40 PM UTC-4, jamadam wrote:
>
>
> <input type="submit" name="button1" value="push it for foo"> 
> <input type="submit" name="button2" value="push it for bar"> 
>
> You will get URLs look like 
>
> ?button1=push+it+for+foo 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to