doggpounder
MIS
I am attempting to make a multi-page form that passes information from one form to the next by using a cookie. I would like to send the data from the first page of the form to the cookie and re-direct the browser to the next page of the form when the user presses on the submit button, but I am unable to get the form to submit the data to a cookie and change the page to the second form at the same time. It's always either one or the other that works, not both.... Please help!!
I have included 2 examples of the first and last lines of the form where the functions are called -- On example is of when the form is able to redirect to the next page and the second example is of when the form creates a cookie properly....
Example #1 -- Redirect works
<FORM name="cookieTest" method="post" action="distributorForm2.htm">
<INPUT type="submit" value="Continue" onsubmit="go(this.form)">
Example #2 -- The cookie works
<FORM name="cookieTest" method="post" action="distributorForm2.htm">
<INPUT type="submit" value="Continue" onclick="go(this.form)">
I have included 2 examples of the first and last lines of the form where the functions are called -- On example is of when the form is able to redirect to the next page and the second example is of when the form creates a cookie properly....
Example #1 -- Redirect works
<FORM name="cookieTest" method="post" action="distributorForm2.htm">
<INPUT type="submit" value="Continue" onsubmit="go(this.form)">
Example #2 -- The cookie works
<FORM name="cookieTest" method="post" action="distributorForm2.htm">
<INPUT type="submit" value="Continue" onclick="go(this.form)">