aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Multiple Submit buttons in a single form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Multiple Submit buttons in a single form" Watch "Multiple Submit buttons in a single form" New topic
Author

Multiple Submit buttons in a single form

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

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

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

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 test page?
[ May 20, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Submit buttons in a single form
 
Similar Threads
Navigating pages with in a single Portlet
validation problems
how to set a form value programatically on PIE
disabling hold button
Value from select element is null in request