title: Reset password form wont update password
body: <pre><code>&lt;?php
  session_start();
  
  if(!isset($_SESSION['name'])){
  echo "You are logged in already. Try resetting your password instead.";
  }else{
  
  echo "
  
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;title&gt;Login Page&lt;/title&gt;
  &lt;link href='css/global.css' type='text/css' rel='stylesheet'&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;/body&gt;
  
  &lt;form method='POST' action='./resetpass.php'&gt;
  &lt;table border='0' width='15%'&gt;
  &lt;h3&gt;Please enter your email so we can send you a link to reset your password.&lt;/h3&gt;
  &lt;tr&gt;&lt;td&gt; Email Address: &lt;/td&gt;&lt;td&gt;&lt;input type='text' name='password' maxlength='40' placeholder=' Your Email Address' /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;
  &lt;/table&gt;
  &lt;p&gt;
  &lt;input type='submit' value='Reset Password' /&gt;&lt;br /&gt;
  &lt;/form&gt;
  
  &lt;/html&gt;
  
  ";
  }
  ?&gt;
  &lt;?php
  include('fnc/connect.php');
  error_reporting(E_ALL);
  ini_set('display_errors', 1);
  if(isset($_POST['submit'])){
  
  $email = $_POST['password'];
  
  mysqli_query($conn, "UPDATE users SET password='23' ");
  
  
  }else{
       echo "failed";
  }
  
  ?&gt;
  </code></pre>
  
  <p>But the code won't update the password in the database. Please ignore the "email" address in the HTML form as I copied it from another form for testing purposes. I just need to know why the text that I enter into the textbox won't update the current password in the database, but instead make it blanked out.</p>
  
  <p>Thanks.</p>