| Thank
You Page with Form Mailto.
Anyone who has ever used a
form with a mailto: action has experienced the frustration of not
being able to display a thank you message when the form has been
emailed. This handy tip will allow you to set a page to redirect
to after your website visitor has completed the form.
The Email Form with Redirect
Copy and paste the following
snippet of code into a new HTML file:
<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Mailto Form with Thank You Page Redirect</title>
</head>
<body>
<form method="POST" action="mailto:your@email-address.com"
onsubmit=window.setTimeout("location.href='YOUR_THANK_YOU_PAGE.html'",5000)>
Your Name <input type="text" name="YourName"
size="20"><br>
Your Email <input type="text" name="YourEmail"
size="20"><br>
Your Message<br> <textarea name="YourMessage"
rows="6" cols="25"></textarea><br>
<input type="submit"
value="Send Email">
</form>
</body>
</html>
|