title: Why is the PHP program not getting variables passed by GET?
body: <p>Here's the file.php that I wrote to get the username and password but for some reason it is not working.</p>
  
  <pre><code>&lt;?php 
      if(isset($_GET["submit"])) {
  
      $username = $_GET["username"];
      $username = $_GET["password"];
      print "Your username: $username";
      print "And password: $password";
      }
  ?&gt;
  
  &lt;!DOCTYPE&gt;
  &lt;html&gt;
    &lt;head&gt;&lt;title&gt;OHO&lt;/title&gt;&lt;/head&gt;
    &lt;body&gt;
      &lt;form action="form.php" type="get"&gt;
      Username:&lt;input type="text" name="username"&gt;&lt;br /&gt;
      Password:&lt;input type="password" name="password"&gt;&lt;br /&gt;
      Submit   &lt;input type="submit" value="submit"&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>