Home › Forums › Back End › PHP Form Question(s) › Re: PHP Form Question(s)
July 12, 2011 at 10:05 pm
#83307
dhechler
Member
Sorry bout not getting back to ya sooner.
Check this out. http://dev.wovenland.com/justaguy/
thats your code working. lemme get the code i have for ya.
$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
$headers .= 'To: <' . $_POST . '>' . "rn";
$headers .= 'From: My Web Site ' . "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";
?>