Is it possible to do something like that? I have 3 validation rules (required, is_unique, matches). That is, if the fields are not filled out, one common message “Fill out the fields” comes out, then if I enter a login that already exists in the database, it displays the message “Login being”, but if the remaining fields are not filled out the message "fill in the fields".

$this->load->library('form_validation'); $this->form_validation->set_rules( 'login', 'Login', 'required|is_unique[users.login]', array( 'is_unique'=>'%s already exists.' ) ); $this->form_validation->set_rules('pass', 'Password', 'required'); $this->form_validation->set_rules('retype_pass', 'Retype', 'required|matches[pass]'); 

    0