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 ?> :

<?php

/* Subject and Email Variables */

$emailSubject = 'Website Inquiry';
$webMaster = 'info@sol-images.com';

/* Gathering Data Variables */

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

$body = <<<EOD
<br><hr><br>
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>
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>

DUMMY TEXT


</html>
EDO;
echo "$theResults";

?>


Thank you in Advance!
You can try the page I have set up on www.sol-images.com/contact

Please wrap your code in code tags.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.