/    Sign up×
Community /Pin to ProfileBookmark

HELP – Rookie in Trouble

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
?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriFeb 01.2004 — 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
×

Success!

Help @Vertigo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...