Click to See Complete Forum and Search --> : HELP - Rookie in Trouble


Vertigo
12-11-2002, 11:13 AM
Hi.

I'm using a JS file to validate my for page. In the HTML page I have an action that sends the info to an email address.

MY QUESTION : How do I get the page to redirect to another page once the form has been successfuly completed.

I only can use one action and i'm using it to post the info to an email address.

My research tells me that I need to add something to the Form Validation JavaScript page.... But what? An on submit?
Do I add a hidden field in the HTML?

As you can tell, I know very little javascript. PLEASE HELP!

Nelson
:(

96turnerri
02-01-2004, 04:33 PM
you could add an onsubmit handler eg onsubmit="window.location='confirm.php';"

or add the window.location in your validating script after it has checked the form and passed it