kiweeboy63 Posted June 5, 2010 Share Posted June 5, 2010 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 protected]"; $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! Link to comment https://forums.phpfreaks.com/topic/203950-need-help-for-my-php-script/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.