Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Form Question(s) Re: PHP Form Question(s)

#83278
dhechler
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














Your request for additional information has successfully been forwarded.


Thank you for your interest in My Web Site.


You can expect a prompt response.
























echo "$theResults";

?>