Ben PHP sorunu çözemiyorum.

0 Cevap php

Ben Gönder düğmesini tıklayın zaman bana bir hata sayfası verir. İşte site http://nealconstruction.com/estimate.html

<?php
/* Subject and Email Varibles */

    $emailSubject = 'Estimate'
    $webMaster = 'jeffery.neal06@gmail.com'

/* 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
<br><hr><br>
Email: $email <br>
Name: $name <br>
Phone Number: $phone <br>
Type Of Job: $type <br>
Location: $location <br>
Additional Info: $info <br>
How to Contact: $contact <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>JakesWorks - travel made easy-Homepage</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 for your information! We will contact you very soon!</div>
</div>
</body>
</html>
EOD;

echo "$theResults";

?>

0 Cevap