Jump to content

Need Help for my PHP script


kiweeboy63

Recommended Posts

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");

?>

 

:facewall:  :confused:  :shrug:

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/203950-need-help-for-my-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.