I keep getting this message what is wrong with my sacript???
Parse error: syntax error, unexpected $end in /home/sites/thefieldinggallery.co.uk/web/contact_form.php on line 65
here is the php script:
<?php
/* subject and email Variables */
$emailSubject = 'Crazy PHP Scripting';
$webMaster = 'info@thefieldinggallery.co.uk';
/* Gathering Data Variables */
$nameField = $_POST['name'];
$surnameField = $_POST['surname'];
$emailField = $_POST['email'];
$telephoneField = $_POST['telephone'];
$commentsField = $_POST['comments'];
$body = <<<em
<br><hr><br>
name: $name <br>
surname: $surname <br>
email: $email <br>
telephone: $telephone <br>
comments: $comments <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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><img src="images/strap.jpg" alt="header" width="769" height="216" /></td>
</tr>
<tr>
<td width="11%"><div align="center"><a href="index.html">Back to Home</a></div></td>
<td width="89%"><div align="center">
<p> </p>
<p><font color="#FF0000" size="+7"><u>Thank you</u> <font color="#000000">for your we have recived you Questions / Comments and we will reply to you</font> <u>as soon as possible</u></font></p>
</div></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align="right">Copyright © <a href="http://www.thefieldinggallery.co.uk">www.thefieldinggallery.co.uk</a></div></td>
</tr>
</table>
</body>
</html>
EOD;
echo "$theresults";
?>