Click to See Complete Forum and Search --> : Redirect to a thank you page in a form?


Charville
05-14-2003, 09:45 PM
Anyone know how to redirect someone after they submit on a form to a thankyou page? Easy stuff for most of you out there...I have learned so much from this site!

pyro
05-14-2003, 10:07 PM
The only reliable way to do this is server side (which is ok, because that is the only reliable way to get the forms contents, as well)

Charville
05-15-2003, 02:19 AM
Thanks...the code goes like this:

<form name="form1" method="post" action="http://home.rcs.net/cgi-bin/FormMail.pl">
<input type=hidden name="subject" value="Survey">
<input type="hidden" name="recipient" value="info@summner.com">
<input type=hidden name="bgcolor" value="#FFEFDF">
<input type=hidden name="required" value="Name,Email">
<input type=hidden name="title" value="Thank you for filling out this form">
<input type="hidden" name="env_report"value="remote_host">

:p

Robert Wellock
05-15-2003, 02:24 PM
Typically one would use PHP assuming your server gives you PHP functionality.

pyro
05-15-2003, 02:35 PM
Also, FormMail is know for it's insecurities. I would highly recommend NOT using it. Switch to something that doesn't allow you to set the address right in your form as a hidden field. Set up right in the script. The problem with setting it as a hidden form field is that people can easily use it to send spam...

Charville
05-17-2003, 01:32 AM
Thanks so much for your help. It is good to know about the email on the forms. Would it work if I just type in the HTML: skipper@hotmail.com? Which would look like skipper@hotmail.com.

Charville
05-17-2003, 01:35 AM
oops...maybe this will work "skipper+&+#+64+;hotmail.com" which would look like skipper@hotmail.com on the web page.