aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes 2 or more submit buttons in a form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "2 or more submit buttons in a form" Watch "2 or more submit buttons in a form" New topic
Author

2 or more submit buttons in a form

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
Can I put to submit buttons into a form that directs to different pages when clicked. For example clicking on button A forward to page A and also the parameters from previous page and clicking on button B forward to page B together with the same parameters also. How can I accomplish this?
Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
<input type="button" name="button1" value="Submit A" onclick="document.formName.action='theurl';document.formName.submit()">
 
IntelliJ Java IDE
 
subject: 2 or more submit buttons in a form
 
Threads others viewed
forward not redirect, on click of button
JSP page with four buttons
Many form tags in html
Duplicate form submission - Synchronizer Token Pattern
Struts, submit button with parameters
IntelliJ Java IDE