Click to See Complete Forum and Search --> : Help - Form Trouble


Vertigo
12-11-2002, 11:20 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

sciguyryan
08-09-2003, 08:27 AM
hi,

you need something like this:


<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function new_page()
{
if (this.form.validation == true)
window.location="destination goes here";
else
window.loaction="go away";
}
</SCRIPT>