I guess it depends on the scenario. I've never had a need for multiple submit buttons. I usually have one "Submit" or "Save" button and use other form elements like check boxes or radio buttons to tell the script how to process the form. There's a million ways to do anything on the web, and if it's valid, I say why not.
On Jan 19, 10:58 am, Walter Lee Davis <[email protected]> wrote: > Could you please say more about this? I use multiple submit buttons > **all** the time. The only submit button that arrives at the form > controller is the one that was pressed. Depending on the value of the > submit button, the form controller takes different action: > > <form action="" method="post"> > <input type="hidden" name="user_id" value="123" /> > <input type="text" name="name" id="name" value="Pete" /> > <input type="text" name="phone" id="phone" value="123 456-7890" /> > <input type="submit" name="update" id="update" value="Update" /> > <input type="submit" name="duplicate" id="duplicate" > value="Duplicate" /> > </form> > > It wouldn't matter one whit if those submit buttons were images or > vanilla submits as long as they were named and IDd uniquely. > > Walter > > On Jan 18, 2009, at 6:34 PM, Pete Brown wrote: > > > t seems like it would be bad practice to use more > > than one submit button for a form. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
