Hi, can someone take a look at my PHP script to see if I have written it correctly for my 'Contact' & 'Thank You' page on my first website I built? Thank You page not coming up after you click the Send button and the info is not being forwarded to the email address I specfy in the "$ForwardTo" string. All I have in my form mail setup for my Contact page is Name, Email Address, Subject, and Message entry area, plus the 'Send' button. I used SiteSpinner to build my website...they were no help.
<?php
$ForwardTo="email@address.com";
$name=$_REQUEST["Name"];
$email=$_REQUEST['EmailAddr'];
$subject=$_REQUEST["Subject"];
$entry=$_REQUEST['TextEntry'];
$details='Name: '.$name."\n"
.'Message: '.$entry."\n";
mail($ForwardTo,"Subject:$subject",$details,"From:$email");
header("Location: ThankYou.html");
?>
Thanks in advance!