| 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()">
|
 |
 |
|
|
subject: 2 or more submit buttons in a form
|
|
|