title: Problem with md5 and hash
body: <pre><code>&lt;form action="inc/login/login.php" method="post" id="userLogon"&gt;
      &lt;div class="field required"&gt;
          Username: &lt;input type="text" name="regduser" tabindex="1" /&gt;&lt;br /&gt;
          &lt;/div&gt;
          &lt;div class="field required"&gt;
          Password: &lt;input type="password" name="regdpass" tabindex="2" /&gt;&lt;br /&gt;
          &lt;/div&gt;
          &lt;input type="submit" name="submitUser" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>&lt;?php
  ob_start();
  $host="localhost"; // Host name 
  $username="root"; // Mysql username 
  $password=""; // Mysql password 
  $db_name="ureviewdu"; // Database name 
  $tbl_name="Student"; // Table name
  
  // Connect to server and select databse.
  mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
  mysql_select_db("$db_name")or die("cannot select DB");
  
  // Define $myusername and $mypassword 
  $myusername=$_POST['regduser']; 
  $mypassword=$_POST['regdpass'];
  
  // To protect MySQL injection (more detail about MySQL injection)
  $myusername = stripslashes($myusername);
  $mypassword = stripslashes($mypassword);
  $myusername = mysql_real_escape_string($myusername);
  $mypassword = mysql_real_escape_string($mypassword);
  
  $sql="SELECT * FROM $tbl_name WHERE uname='$myusername' and upass='$mypassword'";
  $result=mysql_query($sql);
  
  // Mysql_num_row is counting table row
  $count=mysql_num_rows($result);
  // If result matched $myusername and $mypassword, table row must be 1 row
  
  if($count==1){
  // Register $myusername, $mypassword and redirect to file "login_success.php"
  session_register("regduser");
  session_register("regdpass"); 
  header("location:login_success.php");
  }
  else {
  echo "Wrong Username or Password";
  }
  
  ob_end_flush();
  ?&gt;
  </code></pre>
  
  <p><strong>DB Submission</strong>
  <img src="https://i.stack.imgur.com/virRT.png" alt="img1"></p>
  
  <p>When I click submit for entering joe joe for user and pass. How do I get php to recognize joe for pass is actually '55abd89cb7ab6742370f0ad912fef335' ? How do i get php to be able to decipher this?</p>
  
  <p>Anyone?</p>