Can someone please help with some coding. I'm not terribly familiar with PHP but I can't figure out why it won't take.

I'm making a contact form and this is what I get when I press the submit button.

Parse error: syntax error, unexpected $end in D:\Hosting\8304515\html\contact\contactformprocess.php on line 52\

The coding for the php form is as follows & line 52 is the last line on the code with just a ?> :


/* Subject and Email Variables */

$emailSubject = 'Website Inquiry';
$webMaster = '';

/* Gathering Data Variables */

$firstnameField = $_POST;
$lastnameField = $_POST;
$addressField = $_POST;
$citystateField = $_POST;
$phoneField = $_POST;
$emailField = $_POST;
$intrestField = $_POST;
$dateField = $_POST;
$commentsField = $_POST;

$body = <<<EOD
First Name: $firstname <br>
Last Name: $lastname <br>
Address: $address <br>
City, State: $citystate <br>
Phone: $phone <br>
Email: $email <br>
Intrest: $intrest <br>
Date: $date <br>
Comments: $comments <br>

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);

/* Results rendered as HTML */

$theResults = <<<EOD


echo "$theResults";


Thank you in Advance!
You can try the page I have set up on