title: CodeIgniter 2.1.3 - form helper - can't get DATA submitted
body: <p>i am doing a simple form login. After a lot of FAIL tries i downloaded an example in order to understand how it works.
  The problem is: After i submit data in my login form and call the controller i can't get the data submitted in controller.</p>
  
  <p>I tried something so simple as print the username and i got nothing.</p>
  
  <p>What i am doing wrong? Should i have to configure something?</p>
  
  <p>Another issue is: When i code the form with normal HTML form, the form works nice.</p>
  
  <p>I used the code that i found here <a href="http://www.codefactorycr.com/login-with-codeigniter-php.html" rel="nofollow">http://www.codefactorycr.com/login-with-codeigniter-php.html</a></p>
  
  <p>I already used another codes, and my own code, but atm i am trying everything in order to understand what is happening.</p>
  
  <p>login_view.php</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
  &lt;title&gt;Simple Login with CodeIgniter&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Simple Login with CodeIgniter&lt;/h1&gt;
      &lt;?php echo validation_errors(); ?&gt;
      &lt;?php echo form_open('verifylogin'); ?&gt;
        &lt;label for="username"&gt;Username:&lt;/label&gt;
        &lt;input type="text" size="20" id="username" name="username"/&gt;
        &lt;br/&gt;
        &lt;label for="password"&gt;Password:&lt;/label&gt;
        &lt;input type="password" size="20" id="passowrd" name="password"/&gt;
        &lt;br/&gt;
        &lt;input type="submit" value="Login"/&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>verifylogin.php</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class VerifyLogin extends CI_Controller {
  
    function __construct()
    {
      parent::__construct();
      $this-&gt;load-&gt;model('user','',TRUE);
    }
  
    function index()
    {
  
    $username = $this-&gt;input-&gt;post('username');
  
    echo "Username: " . $username;
      //This method will have the credentials validation
      $this-&gt;load-&gt;library('Form_validation');
  
      $this-&gt;form_validation-&gt;set_rules('username', 'Username', 'trim|required|xss_clean');
      $this-&gt;form_validation-&gt;set_rules('password', 'Password', 'trim|required|xss_clean|callback_check_database');
  
  if($this-&gt;form_validation-&gt;run() == FALSE)
  {
  
    //Field validation failed.  User redirected to login page
        $this-&gt;load-&gt;view('login_view');
      }
      else
      {
        //Go to private area
        redirect('home', 'refresh');
      }
  
    }
  
    function check_database($password)
    {
      //Field validation succeeded.  Validate against database
      $username = $this-&gt;input-&gt;post('username');
  
      //query the database
      $result = $this-&gt;user-&gt;login($username, $password);
  
      if($result)
      {
        $sess_array = array();
        foreach($result as $row)
        {
          $sess_array = array(
            'id' =&gt; $row-&gt;id,
            'username' =&gt; $row-&gt;username
          );
          $this-&gt;session-&gt;set_userdata('logged_in', $sess_array);
        }
        return TRUE;
      }
      else
      {
        $this-&gt;form_validation-&gt;set_message('check_database', 'Invalid username or password');
        return false;
      }
    }
  }
  ?&gt;
  </code></pre>
  
  <p>i can't even write this username</p>
  
  <pre><code>$username = $this-&gt;input-&gt;post('username');
  
  echo "Username: " . $username;
  </code></pre>