/    Sign up×
Community /Pin to ProfileBookmark

submit and link

I am making a new form and need the submit button to both send the form and link them to another page. The sending part is no problem but how do I also make that same button link to another page (for example…a ‘thanks for completing our form’ page. Any help would be greatly appreciated. Thanks

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMar 22.2005 — You're supposed to send forms to SERVER-SIDE Programs—where

the server-side program will read the in-coming information,

called the QUERY_STRING ,and then

give the user a "thanks for completing our form" message.

Otherwise you can use either frames or cookies.
Copy linkTweet thisAlerts:
@jmoreilly99authorMar 22.2005 — this is the current code i have...

<input type="submit" value="send" onClick="mailto:[email protected]"/>

However, i also need this button to link to another page...thanks.htm
Copy linkTweet thisAlerts:
@jmoreilly99authorMar 22.2005 — In a different website project I want the submit to link to another page entirely (not a thank you page)...so the simple message will not be enough.
Copy linkTweet thisAlerts:
@UltimaterMar 22.2005 — You'd best set-up a server-side program to accept the in-coming

information and with-in this server-side program,

both&mdash;send the information to your e-mail and then write to

the screen a thank you note.

Go into one of the server-side forums and ask someone to write one for you.

I'd personally use PERL but there is always ASP and PHP.
×

Success!

Help @jmoreilly99 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.18,
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,
)...