Hi guys,
I've made a script for php email and form handler and now I've got a problem that I can't solve. I get a parse error and I searched on the internet for the solutions (forgotten ; or brackets) but I can't see where i forgot one... Can someone help me please?
<?php
/* subject and email variables */
$emailSubject = 'Inschrijvingsformulier';
$webMaster = '***email***'
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$TeamgenotenField = $_POST['Teamgenoten'];
$namenField = $_POST['namen'];
$materiaalField = $_POST['materiaal'];
$commentsField = $_POST['comments'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Naam: $name <br>
Telefoonnummer: $phone <br>
Teamgenoten: $teamgenoten <br>
Namen: $namen <br>
Materiaal: $materiaal <br>
Commentaar: $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
<html>
<head>
<title>Bedankt voor het versturen van de inschrijving</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">Bedankt voor het inschrijven! U krijgt zo spoedig mogelijk een reactie op uw inschrijving.</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
This is the code that I get:
Parse error: syntax error, unexpected T_VARIABLE in Inschrijven1.php on line 12