[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.