Hi, I am having problems with my forms emailing the inputted content into my emails. It sends all of the rest of my html such as line breaks and everything that is actually in my php code. But it doesn't pull anything from the form. I have double and triple checked, and everything is spelled correctly and everything...anyway here is the php for the mail function.
<?php
/* Subject and Email Variables */
$emailSubject = 'Bid Request';
$webMaster = 'calexteriors@sbcglobal.net';
/* Gathering Data Variables */
$firstField = $_POST['first'];
$lastField = $_POST['last'];
$addressField = $_POST['address'];
$cityField = $_POST['city'];
$zipcodeField = $_POST['zipcode'];
$phoneField = $_POST['phone'];
$faxField = $_POST['fax'];
$emailField = $_POST['email'];
$typeField = $_POST['type'];
$timeField = $_POST['time'];
$descriptionField = $_POST['description'];
$body = <<<EOD
<br><hr><br>
First Name: $first <br>
Last Name: $last <br>
Address: $address <br>
City: $city <br>
Zip Code: $zipcode <br>
Phone Number: $phone <br>
Fax Number: $fax <br>
Email: $email <br>
Job Type: $type <br>
Time Frame: $time <br>
Job Description: $description <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>California Exteriors Roofing Contractors, Inc.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>
<div>
<div align="left">Thank you! We will get back to you soon. If you do not hear from us within three business days please do not hesitate to call us at 1-800-344-ROOF</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>