Home › Forums › Back End › PHP Form Question(s) › Re: PHP Form Question(s)
July 13, 2011 at 9:26 am
#83278
Member
let me copy all of the code over for you now. Just so we are both on the same page. Just to make sure.
$email = $_POST;
$questions = $_POST;
// subject
$subject = 'Request for Information';
// HTML message
$message = '
' . $email . ' sent you a message.
' . $email. '
'. $questions .'
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "rn";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
// Additional headers. FILL IN YOUR EMAIL HERE
$headers .= 'To: [email protected]' . "rn";
$headers .= 'From: My Web Site ' . "rn";
$headers .= 'Reply-To: <' . $_POST . '>' . "rn";
// Mail it
mail($to, $subject, $message, $headers);
//Send them back to the form page with a success message.
// From here is the html to the success page after e-mail was $theResults = <<< EOD
?>
My Web Site/contact
My Web Site
Yada yada
Your request for additional information has successfully been forwarded.
Thank you for your interest in My Web Site.
You can expect a prompt response.
© 2011 My Site / All Rights Reserved.
EOD;
echo "$theResults";
?>