You have to either use client-side code to alter the form action before it submits or you have to post the form to one asp file that will read all fields into hidden form fields of a new form and then post to the correct page based on which button was pressed.
The easiest way is to alter the form action.
I would use two buttons type="button" rather than type="submit" and have each button call a function passing the name of the page to send to. In that function do a document.forms[0].action = whateverpageyouwant;
then do a document.forms[0].submit();
At my age I still learn something new every day, but I forget two others.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.