View Full Version : More than one submit buttons?
jaywhy13
01-09-2005, 05:41 PM
It is possible to have more than one Submit buttons on a form?
chilipie
01-09-2005, 05:53 PM
Why would you want more than one anyway?
AaronW
01-09-2005, 06:20 PM
Have as many as you want. Only the one you click is submitted with the form. For example, I've done this a few times:
<input type="submit" name="action" value="Add" />
<input type="submit" name="action" value="Edit" />
<input type="submit" name="action" value="Delete" />
If you click "Delete", it'll set action to "Delete", and the other two won't be submitted. Handy.
jaywhy13
01-09-2005, 08:06 PM
Well chillie pie, I'm doing a messaging system in ASP right and I wanna have buttons to delete, forward and reply to a message.... So I want the form to be submitted based on all these buttons.
I think I've tried doing that though.... using different submit buttons, but the problem was that when I clicked on the buttons.... once there was more than one
Nothing happened?!?!?! :confused:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.