Hi Walter, Yeah, I was curious about that too. There's no problem with multiple submits that I'm aware of, perfectly good reasons for doing that, and using an event handler to simulate built-in behavior seems less than ideal barring some strong reason for doing it... -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available
On Jan 19, 3:58 pm, Walter Lee Davis <wa...@wdstudio.com> 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---