Syntax Error, unexpected $end HELP

Please someone save my life. I’ve no idea why this error keeps popping up and I can’t seem to change it. I’m trying to add a form to my website. www.sol-images.com but an error pops up every time for the very last line of my php script. I’m hoping to find some php God’s who can help.

Here is my PHP code that I’m using:

[table]
[tr]
[td]

<?php /* Subject and Email Variables */ $emailSubject = 'Website Inquiry'; $webMaster = '[email protected]'; /* Gathering Data Variables */ $firstnameField = $_POST['firstname']; $lastnameField = $_POST['lastname']; $addressField = $_POST['address']; $citystateField = $_POST['citystate']; $phoneField = $_POST['phone']; $emailField = $_POST['email']; $intrestField = $_POST['intrest']; $dateField = $_POST['date']; $commentsField = $_POST['comments']; $body = <<<EOD


First Name: $firstname
Last Name: $lastname
Address: $address
City, State: $citystate
Phone: $phone
Email: $email
Intrest: $intrest
Date: $date
Comments: $comments
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 Sol Images //-->
Beautiful Wedding Photography in Las Vegas
Thank you for contacting Sol Images. You will receive a response back within one business day.
EDO; echo "$theResults"; ?>

[/td]
[/tr]
[/table]

Try with this… I didn’t test it though.

<?php /* Subject and Email Variables */ $emailSubject = 'Website Inquiry'; $webMaster = '[email protected]'; /* Gathering Data Variables */ $firstnameField = $_POST['firstname']; $lastnameField = $_POST['lastname']; $addressField = $_POST['address']; $citystateField = $_POST['citystate']; $phoneField = $_POST['phone']; $emailField = $_POST['email']; $intrestField = $_POST['intrest']; $dateField = $_POST['date']; $commentsField = $_POST['comments']; $body = "EOD


First Name: $firstname
Last Name: $lastname
Address: $address
City, State: $citystate
Phone: $phone
Email: $email
Intrest: $intrest
Date: $date
Comments: $comments
EOD"; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); if($success){ /* Results rendered as HTML */ ?><<<EOD Sol Images //-->
<tr>

  <td rowspan="2">

    <img src="../images/header.gif" width="425" height="178" alt=""></td>

  <td colspan="3" rowspan="2"><img src="../images/logo.jpg" width="440" height="178" alt=""></td>
  <td colspan="6">
    <img src="../images/tagline.jpg" width="433" height="52" alt=""></td>
  </tr>

<tr>
  <td colspan="6">
    <img src="../images/header-05.gif" width="433" height="126" alt=""></td>
  </tr>

<tr>

  <td colspan="10">

    <img src="../images/sol-images_05.gif" width="1298" height="10" alt=""></td>

  </tr>

<tr>

  <td colspan="2">

    <img src="../images/sol-images_06.gif" width="720" height="57" alt=""></td>

  <td><a href="../index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../Images/home_down.gif',1)"><img src="../Images/home_up.gif" name="home" width="90" height="57" border="0"></a></td>

  <td colspan="2"><a href="../gallery/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('gallery','','../Images/gallery_down.gif',1)"><img src="../Images/gallery_up.gif" name="gallery" width="93" height="57" border="0"></a></td>

  <td><a href="../clients/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('clients','','../Images/clients_down.gif',1)"><img src="../Images/clients_up.gif" name="clients" width="93" height="57" border="0"></a></td>

  <td><a href="../about/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','../Images/about_down.gif',1)"><img src="../Images/about_up.gif" name="about" width="92" height="57" border="0"></a></td>

  <td><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','../Images/contact_down.gif',1)"><img src="../Images/contact_up.gif" name="contact" width="94" height="57" border="0"></a></td>

  <td><a href="../blog/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('blog','','../Images/blog_down.gif',1)"><img src="../Images/blog_up.gif" name="blog" width="93" height="57" border="0"></a></td>

  <td>

    <img src="../images/sol-images_13.gif" width="23" height="57" alt=""></td>

  </tr>

<tr>

  <td height="658" colspan="10"><!-- TemplateBeginEditable name="main_content_area" -->

    <div id="site_layout_content"><center></center>

      <table width="787" border="0" align="center" cellpadding="0" cellspacing="1">

        <tr>
          <th scope="row"><img src="Sol_Images_Contact2.jpg" width="380" height="570" alt="Beautiful Wedding Photography in Las Vegas"></th>
        </tr>
     
     <tr>

          <th scope="row">Thank you for contacting Sol Images. You will receive a response back within one business day.</th>

        </tr>
      </table>
    </div>
  <!-- TemplateEndEditable --></td>
</tr>

<tr>
  <td colspan="10">
    <img src="../images/bottom_content.gif" width="1298" height="38" alt=""></td>
  </tr>

<tr>
  <td>
    <img src="../images/spacer.gif" width="425" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="295" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="90" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="55" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="38" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="93" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="92" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="94" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="93" height="1" alt=""></td>
  <td>
    <img src="../images/spacer.gif" width="23" height="1" alt=""></td>
  </tr>
<?php ;} ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service