A
andy m
Guest
Hi, please can someone check this php code because it's not working and I can't see anything wrong with it:
<?php
/*subject and email vars*/
$emailSubject = '39WD CUSTOMER';
$webMaster = '[email protected]';
/*Gathering data vars*/
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$budgetField = $_POST['budget'];
$pagesField = $_POST['pages'];
$ideasField = $_POST['ideas'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Budget: $budget <br>
Pages: $pages <br>
Info: $ideas <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* result */
$theResults = <<<EOD
<head>
</head>
<body>
Thankyou for sending us an email we will reply shortly
</body>
</html>
EOD;
echo "$theResults";
?>
<?php
/*subject and email vars*/
$emailSubject = '39WD CUSTOMER';
$webMaster = '[email protected]';
/*Gathering data vars*/
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$budgetField = $_POST['budget'];
$pagesField = $_POST['pages'];
$ideasField = $_POST['ideas'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Budget: $budget <br>
Pages: $pages <br>
Info: $ideas <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* result */
$theResults = <<<EOD
<head>
</head>
<body>
Thankyou for sending us an email we will reply shortly
</body>
</html>
EOD;
echo "$theResults";
?>