PDA

Click to See Complete Forum and Search --> : HTML Form



losse
07-14-2004, 10:55 AM
Hi there
I am building an online form it's a method=post type of form.. your basic html form I just want to know how to redirect them to a certain page (let's say thanks.html) once they hit the submit button... Here is my code so far:

<form action="/cgi-bin/FormMail.pl method="post" enctype="text/plain">
<h3><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Name:<br>
<input type="text" name="name"
value="yourname" size="20">
<br>
Mail:<br>
<input type="text" name="mail"
value="yourmail" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="yourcomment" size="40">
<br>
<br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</font></h3>
</form>

Thanks guys

catbert303
07-24-2004, 09:14 PM
Hi,

I think you could get the perl script to redirect them to another page by using something like this at the end of the script,

print "Location: http://www.yoursite.com/thanks.html\n\n";