error reading in PHP
<p>Yes I believe I have this done but I am getting a message that is saying  Parse error: parse error, unexpected $end in C:\wamp\www\contactform.php on line 106. I look down on that line.The only think I can think of is that the else, elseif and if are wrong i been trying to switch them around to see if that makes a different. But nothing so far.     </p>

<pre><code>    &lt;/style&gt;
   &lt;/head&gt;
    &lt;body&gt;
    &lt;div id="container"&gt;
    &lt;?php
     if (isset($_POST['submit'])){
        if (trim($_POST['name'])==""){
           $strMessage="Please enter your name!";
           showForm($strMessage);
        } elseif (isset($_POST['submit'])){
               if (trim($_POST['email'])==""){
                  $strMessage="Please enter your email!";
                  showForm($strMessage);
               }
               if(isset($_POST['submit'])){
                  if (trim($_POST['username'])==""){
                      $strMessage="Please enter your username!";
                      showForm($strMessage);
                  } elseif ($_POST['pword1'] != $_POST['pword2']) {
                      $_POST['pword1'] = NULL;  // Reset the values of pword1 so it is not in the form
                      $_POST['pword2'] = NULL;  // Reset the values of pword2 so it is not in the form
                      $strMessage="Passwords do not match!";
                      showForm($strMessage);
                  } elseif (strlen(trim($_POST['pword1']))&lt;=3){
                      $strMessage="Your password must be at least 4 characters long!";
                      showForm($strMessage);
                  } else {
                      $strMessage="Thank you, your information has been submitted. Below is the       information you sent:";
                      $strMessageBody.="Name: ".trim(stripslashes($_POST['name']))."&lt;br /&gt;";
                      $strMessageBody.="E-mail: ".trim(stripslashes($_POST['Email']))."&lt;br /&gt;";
                      $strMessageBody.="UserName: ".trim(stripslashes($_POST['username']))."&lt;br /&gt;";
                      $strMessageBody.="Password: ".trim(stripslashes($_POST['pword1']))."&lt;br /&gt;";
                      $strMessageBody.="Re-enter Password: ".trim(stripslashes($_POST['pword2']))."&lt;br  /&gt;";
                      echo "&lt;h1&gt;".$strMessage."&lt;/h1&gt;";
                      echo $strMessageBody;
                   }
               } else {
                   $strMessage= "Please fill out the form below to send your information:";
                   showForm($strMessage);
               }
            }
      ?&gt;
   &lt;/div&gt;
    &lt;/body&gt;
       &lt;/html&gt;
</code></pre>
