Welcome Guest, Not a member yet? Register   Sign In
$this->input->post() always returning FALSE
#6

[eluser]karimmaassen[/eluser]
@InsiteFX:

To specify my code a little bit more, this is what I'm doing right now:

Code:
if ($this->input->post())
{
    $this->load->library('form_validation');

    $this->form_validation->set_rules('username', 'Username', 'trim|required|min_length[3]|max_length[32]');
    $this->form_validation->set_rules('email_address', 'Email address', 'trim|required|valid_email');
    $this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[3]');
                
    if($this->form_validation->run() == FALSE)
    {
        echo 'Posted, but not validated';    
    }
    else
    {
        echo 'Posted and validated';
    }
}
else
{
    echo 'Not posted';
}

The thing is, I'm only seeing 'Not posted'.

@Armchair Samurai:

I'm fairly sure checking for $this->input->post() is correct. But I also tried $_POST. It doesn't work neither.


Messages In This Thread
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:38 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:40 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:41 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:45 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:47 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:53 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 03:57 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:00 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:21 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:21 AM
$this->input->post() always returning FALSE - by El Forum - 05-15-2011, 04:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB