I haven't found any threads about this problem. When I submit a form It is sent to my email. The problem is it doesn't contain any data I typed in! The name field and email field and everything else is just blank. I have been searching for the problem but the website is way overdue.
<?php
/*Subject and variable*/
$emailSubject = 'Reservation Form';
$webMaster = 'info@website.com';
/*Gethering Data Variables*/
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$resortField = $_POST['resort'];
$sailingField = $_POST['sailing'];
$arrivingField = $_POST['arriving'];
$durationField = $_POST['duration'];
$adultsField = $_POST['adults'];
$childrenField = $_POST['children'];
$additionalinfoField = $_POST['info'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Resort: $resort <br>
Sailing: $sailing <br>
Arriving: $arriving <br>
Duration: $duration <br>
Adults: $adults <br>
Children: $children <br>
Additionals: $info <br>
EOD;
$headers = "From: $Email\r\n";
$headers .= "Content-type: text/html\r\n";
$sucess = mail($webMaster, $emailSubject, $body, $headers);
/*Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>website title</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 interest! Your inquiry will be replied to via email within one working day!</div>
</div>
</body>
</html>
EOD;
echo $theResults;
?>