title: simple login system in php and html
body: <p>hi i have tried to make a simple login system. (Without mysql). Im not sure what is wrong with my code and was wondering if someone could help me.</p>
  
  <pre><code>&lt;?php
  $user=" ";
  $password=" ";
  if(isset($_POST['submit'])){
  
  if(($_POST['user'] == $user) and ($_POST['password'] == $password)){
      echo "successful login!";
      }
      else
      {
      echo "Bad Login.";
      }
  }
  ?&gt;
  &lt;html&gt;
      &lt;input type="text" name = "user" value = "username" /&gt;
      &lt;br&gt;
      &lt;input type="password" name = "password" value = "password" /&gt;
      &lt;br&gt;
      &lt;input type="submit" name = "submit" value = "login"/ &gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When i click the login button, nothing happens.
  Thank you</p>