title: does not work to post to the database first click(second click work)
body: <p>I have a big problem. I have a feature where you should replace "password". but when the user clicks on submit first time, leaving Hands = "false" in var_dump. If you do the same process again and it works great! has any had a similar problem?</p>
  
  <p>VIEW:</p>
  
  <pre><code>    public function View(){
      $NavigationView = New NavigationView();
  
      return "
      &lt;div class='change'&gt;
              &lt;form name='login' id='RegisterUserForm' method='Post'  action='" . $NavigationView -&gt; GetPersonIndex() . "'&gt;
                  &lt;p&gt;
                      &lt;label class='label' for='password'&gt;&lt;h2  id='changelabel' &gt;New Password&lt;/h2&gt;&lt;/label&gt;
                  &lt;/p&gt;
                  &lt;p&gt;
                      &lt;input type='password' size='20' name='$this-&gt;pass' id='name' class='text'/&gt;
                  &lt;/p&gt;
  
                      &lt;input type='hidden'  id='submithidden' value='true' name='" . NavigationView::Personindex . "'/&gt;
                      &lt;input type='submit'  name='submit' id='submit' value='Change Password'/&gt;
              &lt;/form&gt;
      &lt;/div&gt;
      ";
  
  
  }   
  </code></pre>
  
  <p>CONTROLLER : </p>
  
  <pre><code>if($PersonChangeView-&gt;TriedToChangePassword()){
          var_dump($PersonChangeView-&gt;GetPassword(),$Username);
          $kalle = $UserHandler-&gt;ChangePassword($PersonChangeView-&gt;GetPassword(),$Username);
          var_dump($kalle);
  
      }
  </code></pre>
  
  <p>HANDLER:</p>
  
  <pre><code>    public function ChangePassword($password,$username){
      var_dump($password,$username);
      $DBConnection = new DBConnection();
      $DBConnection -&gt; Connect();
      $sql= "UPDATE user SET m_password=? where m_username=?";
      $stmt = $DBConnection -&gt; prepare($sql);
      $stmt -&gt; bind_param("ss",$password, $username);
      if ($stmt === FALSE) {
          //echoBr("prepare of '$sql' failed " .  $DBConnection -&gt; error);
          return false;
      }
      $stmt -&gt; execute();
      // ger resultet.
      $result = $stmt -&gt; get_result();
      $stmt -&gt; close();
      return false;
  
  
     }
  </code></pre>