On 4/3/07, Chris Shenton <[EMAIL PROTECTED]> wrote:
>
> Rick Flosi <[EMAIL PROTECTED]> writes:
>
> > You could alternatively have 2 submit buttons with the same name and
> > different values and check the values no?
>
> I initially did this but found that the formencode validator got
> confused and changed my button names on an non-validating form.  So I
> gave each a unique name.

This came up on some mailing list before, and we decided it was better
to use different submit names, especially if you were going to
internationalize the text of the button (i.e. the value).  Hence,
whichever button is submitted will end up (per the name field) in the
form, and none of the others will, and that is the best way.

Happy Hacking!
-jj

-- 
http://jjinux.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to