I cant figure out my PHP problem. Can anyone with PHP codes?
Posted
by
Jeffery
on Stack Overflow
See other posts from Stack Overflow
or by Jeffery
Published on 2010-12-23T00:32:57Z
Indexed on
2010/12/23
0:54 UTC
Read the original article
Hit count: 234
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";
?>
© Stack Overflow or respective owner