title: Parse Error T_CLASS
body: <p>I am trying to write a class for users of my site to login, I haven't gotten very far and am already getting errors. </p>
  
  <pre><code>&lt;?php 
  
      function isIn () {
          if(isset($_SESSION) &amp;&amp; $_SESSION['signed_in'] == TRUE) {
              return true;
          } else {
              return false;
          }
      }
  
      class User {
          public function post($db) {
          }
  
          public function LoginForm() { //says problem is on this line
              echo '&lt;form  method="post"&gt;
                  &lt;div id="textbox"&gt;
                      &lt;input type="text" id="username"     name="username" value="Username:" maxlength="100" size="16" onfocus="changeUsername();"/&gt;
              &lt;/div&gt;
              &lt;div id="passbox"&gt;
                  &lt;input type="password" id="password" name="password" value="Password:" maxlength="20" size="16"/&gt;
              &lt;/div&gt;
              &lt;input type="hidden" value="TRUE"name="login"/&gt;
              &lt;input type="submit" id="login" value="" /&gt;
          &lt;/form&gt;
          &lt;p id="loginlinks"&gt;&lt;a href="forgotpass.php"&gt;Forgot Password&lt;/a&gt; / &lt;a href="register.php"&gt;Register&lt;/a&gt;&lt;/p&gt;
          &lt;/div&gt;';
      }
  
      public function Login(){}
  
  }
  </code></pre>
  
  <p>The error is <code>Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or '(' in C:\xampp\htdocs\WhyImEvil\WIP\member.php on line 15</code>. I am running PHP Version 5.3.5.</p>
  
  <p>For the life of my I can't figure this out.</p>
  
  <p>Here is the code that includes the file:</p>
  
  <pre><code>&lt;?php
  require_once('database.php');
  require_once('member.php');
  session_start();
  $signedIn=isIn();
  
  $person;
  $dbc;
  
  if(!signedIn) {
      $person=new User();
      $dbc=new Database();
  }
  
  $dbc-&gt;connect();
  ?&gt;
  </code></pre>