Form to 'Thankyou' page

admin

Administrator
Staff member
Hi there,<br />
<br />
OK - I figured out how to send my form using a simple 'mailto:' but I would like to send the form filler to a 'thankyou' page when they press the Submit button and the validation code has allowed the email to be sent.<br />
<br />
I was trying to avoid using server side code as my host doesn't provide it! <br />
<br />
I'm hopelessly mixed up with the html.<br />
<br />
Can anyone provide me direction?<br />
<br />
I have the following code at the moment:-<br />
<form name="Enquiry" action="mailto:[email protected]?subject=Grimsby Tennis Centre Enquiry Form" method="POST" onsubmit="return valEmailBox()" enctype="text/plain" style="background-color: #00FFFF"><br />
...<br />
...<br />
...<br />
<input name="submit" title="Email your enquiry to the Webmaster at Grimsby Tennis Centre" type="submit" value="Send" ><br />
<input name="GOTOURL" type="hidden" onselect="Location: <!-- m --><a class="postlink" href="http://home.comcast.net/~grimsbytenniscentre/thankyou.htm">http://home.comcast.net/~grimsbytennisc ... ankyou.htm</a><!-- m -->"><br />
<br />
The current page without the 'Thankyou' is at:-<br />
<br />
<!-- m --><a class="postlink" href="http://home.comcast.net/~grimsbytenniscentre/enquiry.htm">http://home.comcast.net/~grimsbytennisc ... nquiry.htm</a><!-- m --> (<!-- m --><a class="postlink" href="http://home.comcast.net/~grimsbytenniscentre/">http://home.comcast.net/~grimsbytenniscentre/</a><!-- m -->) <br />
<br />
Thanks in anticipation<br />
<br />
Allan<!--content-->Add this onClick to your submit button:<br />
<br />
<input name="submit" title="Email your enquiry to the Webmaster at Grimsby Tennis Centre" type="submit" value="Send" onClick="location.href='http://home.comcast.net/~grimsbytenniscentre/thankyou.htm'"> <br />
<br />
That should work for you. Make sure to put single quotes around the Thank you page URL.<br />
<br />
I think this does what you are asking.<!--content-->jaegernaut,<br />
<br />
many thanks for posting the reply!<br />
<br />
That did the trick!<!--content-->You're welcome. Glad I could help.<!--content-->
 
Back
Top