[eluser]bpdp[/eluser]
hello everyone,
I have something like this:
Code:
$this->form_validation->set_rules('password', 'Password', 'trim|required|callback_correct_creds');
$this->form_validation->set_rules('email', 'Email', 'trim|required|callback_is_confirmed');
which currently kinda works but not exactly what I would like. right now I have a callback to check to see if the username and password combo is legit, and another call back to make sure that they have confirmed there email. both work as expected but if the email is entered wrong both errors are triggered. I was wondering if there was a way to do something like:
Code:
if($this->form_validation->set_rules('password', 'Password', 'trim|required|callback_correct_creds'))
{
$this->form_validation->set_rules('email', 'Email', 'trim|required|callback_is_confirmed');
}
Thanks in advance