title: parsing error on last line
body: <p>i have corrected and cleaned up previous code,, php and html..
  i get parsing error at last line..
  i dont know whats wrong..
  also, site makes me add useless text for post
  all responses are appreciated.
  thanx</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;?php
  if(isset($_POST['email'])) {
  
      // EDIT THE 2 LINES BELOW AS REQUIRED
      $email_to = 'xxx.com, ';
      $email_subject = "xxx Questons";
  
      function died($error) {
          // your error code can go here
          echo "We are very sorry, but there were error(s) found with the form you submitted. ";
          echo "These errors appear below.&lt;br /&gt;&lt;br /&gt;";
          echo $error."&lt;br /&gt;&lt;br /&gt;";
          echo "Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;";
          die();
      }
  
      // validation expected data exists
      if(!isset($_POST['email']) ||    
         !isset($_POST['comments'])) 
      {
          died('We are sorry, but there appears to be a problem with the form you submitted.');       
      }
  
      $name = $_POST['name']; // not required
  
  
      $email_from = $_POST['email']; // required
      $comments = $_POST['comments']; // required
  
      $error_message = "";
      $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
    if(!preg_match($email_exp,$email_from)) {
      $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;';
    }
      $string_exp = "/^[A-Za-z .'-]+$/";
  
      if(strlen($comments) &lt; 2) {
      $error_message .= 'The Comments you entered do not appear to be valid.&lt;br /&gt;';
    }
    if(strlen($error_message) &gt; 0) {
      died($error_message);
    }
      $email_message = "Form details below.\n\n";
  
      function clean_string($string) {
        $bad = array("content-type","bcc:","to:","cc:","href");
        return str_replace($bad,"",$string);
      }
  
      $email_message .= "Name: ".clean_string($name)."\n";
  
      $email_message .= "Email: ".clean_string($email_from)."\n";
  
      $email_message .= "Comments: ".clean_string($comments)."\n";     
  
  // create email headers
  $headers = 'From: '.$email_from."\r\n".
  'Reply-To: '.$email_from."\r\n" .
  'X-Mailer: PHP/' . phpversion();
  @mail($email_to, $email_subject, $email_message, $headers);  
  ?&gt;
  
  &lt;!--include your own success html here --&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  
  &lt;meta http-equiv="Refresh" content="10; URL=xxxx"&gt; 
   &lt;title&gt;xxx xxcx xxx&lt;/title&gt;
   &lt;meta http-equiv="Content-Language" content="en-us" /&gt;
    &lt;meta http-equiv="imagetoolbar" content="no" /&gt;
  
        &lt;meta name="MSSmartTagsPreventParsing" content="true" /&gt;
  
      &lt;meta name="description" content="xxxsxxx xxx. " /&gt;
  
      &lt;meta name="keywords" content="orchids, xxx, Orchid judging, xxx" /&gt;&lt;style type="text/css" media="all"&gt;@import "css/master.css";&lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt; 
  &lt;p&gt;&lt;div id="textbox"&gt;&lt;br&gt;&lt;br&gt;
  
  &lt;center&gt;&lt;h1&gt;Thank you for contacting us. &lt;br /&gt;
  We will be in touch with you very soon.&lt;/h1&gt;
  
  &lt;br&gt;&lt;br&gt;  
  
  Please wait 10 seconds and you will be transferred to the next page or &lt;a href=http:xxxindex.html&gt;&lt;font color="#0000ff"&gt;click here&lt;/font&gt;&lt;/a&gt; to go now!&lt;/center&gt;
  
  &lt;p&gt;&lt;center&gt;Please visit our website &lt;a href="xxx"&gt;&lt;i&gt;www.&lt;/i&gt;&lt;/a&gt; to learn more &lt;br /&gt;
      about the xxx&lt;/center&gt;
  &lt;p&gt;&amp;nbsp;&lt;/p&gt;
  &lt;/div&gt;    
  &lt;/div&gt;
  &lt;/div&gt; 
  
  &lt;/body&gt;
  &lt;/html&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>