title: Password fields won't validate properly PHP
body: <p>I'm making a registration form but I can't get the "Confirm Password" field to validate. The field "Password" validates but "Confirm Password" doesn't.</p>
  
  <p>MY PHP code:</p>
  
  <pre><code>    $ps_m="";
      $ps1_m="";
      $pass=isset($_POST["pass"]) ? $_POST["pass"]: "" ;
      $pass1=isset($_POST["pass_1"]) ? $_POST["pass_1"] : "";   
  
      if(isset($_POST["submit"])){
      if($pass===""){$ps_m="&lt;span class=\"error\"&gt;Please enter Password&lt;/span&gt;";}
      if(!$pass1===$pass){$ps1_m="&lt;span class=\"error\"&gt;Password does not match&lt;/span&gt;";}
      }
  </code></pre>
  
  <p>And Here is my HTML code:</p>
  
  <pre><code>&lt;input type="password" name="pass" placeholder="Enter Password"/&gt;&lt;?php echo $ps_m;?&gt;
  &lt;input type="password" name="pass_1" placeholder="Confirm Password"/&gt;&lt;?php echo $ps1_m;?&gt;
  </code></pre>