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
-~----------~----~----~----~------~----~------~--~---