title: Parse error: syntax error, unexpected end of file (Registration script)
body: <p>I have a problem with my script :S</p>
  
  <blockquote>
    <p>This is the error:Parse error: syntax error, unexpected end of file</p>
  </blockquote>
  
  <p>Here is the full code.I searched for not closed bracklets or something but didn't found any :S
  I hope some of you guys can find the problem.</p>
  
  <pre><code>&lt;?php
  include "header.php";
  include "menu.php";
  ?&gt;
  &lt;div class="wrapper"&gt;
  &lt;table width=100%&gt;
      &lt;td valign=top width=230px&gt;
          &lt;div class="login"&gt;
          &lt;form name="register" method="post" action="$_SERVER[PHP_SELF]" onsubmit="return validateregister()"&gt;
          &lt;input type="text" name="username" placeholder="Username"/&gt;&lt;br /&gt;
          &lt;input type="password" name="password" placeholder="Password"/&gt;&lt;br /&gt;
          &lt;input type="password" name="passwordagain" placeholder="Password again"/&gt;&lt;br /&gt;
          &lt;input type="text" name="email" placeholder="E-mail"/&gt;&lt;br /&gt;
          &lt;input type="text" name="mcname" placeholder="Minecraft Name"/&gt;&lt;br /&gt;
          &lt;?php
          $captchaquery = mysql_query('SELECT * FROM general');
          $captcha = mysql_fetch_array($captchaquery);
          if($captcha['captcha'] == 'enabled')
          {
              require_once('functions/recaptchalib.php');
              $publickey = $captcha['captchapublic'];
              echo recaptcha_get_html($publickey);
          }
          ?&gt;
          &lt;input class="btn" type="submit" name="register" value="Register" /&gt;
          &lt;/form&gt;
          &lt;/div&gt;
      &lt;/td&gt;
      &lt;td valign=top&gt;
          &lt;div id="errors" style="width:80%; margin-left:auto; margin-right:auto;"&gt;&lt;/div&gt;
      &lt;/td&gt;
  &lt;/table&gt;
  &lt;?php
  if(isset($_POST['register']))
  {
      if($captcha['captcha'] == 'enabled')
      {
          require_once('recaptchalib.php');
          $privatekey = $captcha['captchaprivate'];
          $resp = recaptcha_check_answer ($privatekey,
                                  $_SERVER["REMOTE_ADDR"],
                                  $_POST["recaptcha_challenge_field"],
                                  $_POST["recaptcha_response_field"]);
  
          if (!$resp-&gt;is_valid) {
          die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp-&gt;error . ")");
      }
      else
      {
      registerUser($_POST['username'], $_POST['password'], $_POST['passwordagain'], $_POST['email'], $_POST['mcname']);
      }
  }
  include "footer.php";
  ?&gt;
  </code></pre>