I cant figure out my PHP problem. Can anyone with PHP codes? [closed]
- by Jeffery
when I click the submit button it gives me an error page. Here is the site http://nealconstruction.com/estimate.html
$emailSubject = 'Estimate'
$webMaster = '[email protected]'
/* Gathering Info */
$emailField = $_POST ['email'];
$nameField = $_POST ['name'];
$phoneField = $_POST ['phone'];
$typeField = $_POST ['type'];
$locationField = $_POST ['location'];
$infoField = $_POST ['info'];
$contactField = $_POST ['contact'];
$body = <<<EOD
Email: $email
Name: $name
Phone Number: $phone
Type Of Job: $type
Location: $location
Additional Info: $info
How to Contact: $contact
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-Type: text/html\r\n";
$success = mail($webMaster; $emailSubject; $body; $headers);
/* Results rendered as html */
$theResults = <<
JakesWorks - travel made easy-Homepage
Thank you for your information! We will contact you very soon!
EOD;
echo "$theResults";
?