title: PHP form won't submit to $_POST
body: <p>Noob alert! I am doing Kevin Skoglund's PHP Essentials course on Lynda.com. Ch. 11 is an example to illustrate superglobals. He is using php 5.6 and my WAMP is setup for php 7.0.1. I can't get this simple form to post to the superglobal and I have no idea why. </p>
  
  <pre><code>  &lt;?php
      if(isset($_POST['submit'])){
         $username = $_POST["username"];
         $password = $_POST["password"];
          $message = "Logging in {$username}";
      } else{
          $message= "The form was not submitted";
      }
      ;?&gt;
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;Hello World&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;?php echo $message;?&gt;
      &lt;form method="post" action=""&gt;
          &lt;label for="username"&gt;Username: &lt;/label&gt;
              &lt;input type="text" name="username" id="username" value=""/&gt;
              &lt;br /&gt;
          &lt;label for="password"&gt;Password:&lt;/label&gt;
              &lt;input type="password" name="password" id="password" value=""/&gt; &lt;br /&gt;
              &lt;br/&gt;
          &lt;input type="submit" name="submit" value="Submit"/&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The output is always null regardless of what is typed into the two fields. Its running from localhost directory, WAMP is live. What  could cause such a simple error?  </p>