kirankulkarni
MIS
I have a form that should have two submit buttons. One to post the data to the database, and the other to carry certain variables over to the next page.
Problem is, only one works. It seems the same form will not be posted twice.
e.g.
<form name=name method=post>
<some fields here>
<input type = submit onClick"JavaScript:document.form.action='currentpage.jsp'">
(this will post the data to the database)
<input type = submit onClick"JavaScript:document.form.action='nextpage.jsp'">
(this should post the data on the next page, but doesn't.)
Whichever is pressed first works. The second one doesn't.
Thanks in advance for your help.
Problem is, only one works. It seems the same form will not be posted twice.
e.g.
<form name=name method=post>
<some fields here>
<input type = submit onClick"JavaScript:document.form.action='currentpage.jsp'">
(this will post the data to the database)
<input type = submit onClick"JavaScript:document.form.action='nextpage.jsp'">
(this should post the data on the next page, but doesn't.)
Whichever is pressed first works. The second one doesn't.
Thanks in advance for your help.