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)

#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














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

?>