File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Multiple Submit buttons in a single form
Joined: Feb 11, 2003
May 20, 2007 11:55:00
I am using 2 submit buttons in a single form. It is like back and next button. Back takes you to previous page, next takes you to next page from the current page.
It is OK to have 2 submit buttons right ? Just double checking. Please let me know...
Author and ninkuma
Joined: Jan 10, 2002
May 20, 2007 12:56:00
Sure. Clicking either one will submit the containing form. Give them a value if you want to differentiate between the two on the server.
Be aware that there are also non-submit button types that can be used when form submission semantics are not required.
Is this not the type of thing that you could check for yourself in about three minutes by writing a simple
[ May 20, 2007: Message edited by: Bear Bibeault ]
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Multiple Submit buttons in a single form
disabling hold button
Value from select element is null in request
how to set a form value programatically on PIE
Navigating pages with in a single Portlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015