title: PHP If-Statements Not Working for Form
body: <p>I am getting unexpected T_ELSES.  Please help </p>
  
  <pre><code>&lt;?php
  $password = $_POST['password'];
  $submit = $_POST['submit'];
  if ($password == "lol") {
   if ($password) {
    if ($submit) {
     echo "Logged in";
     }
    } else {
    echo "Wrong Pass";
    }
    } else {
    echo "Please fill in all fields.";
    }
   } else {
   echo "Please click submit";
  }
  ?&gt;
  </code></pre>
  
  <p>Either it is just saying please click submit or it gives me unexpected errors or it doesn't detect please fill in all fields.  Please help me and fix up my code thanks</p>
  
  <p>Question:  Whats the problem</p>