is_unique is the form validation which not allow the value exist in the database.
But, can I do the opposite one? for example, I would like to need the value which is exist
in the database, so, I make the rules like this:
$this->form_validation->set_rules('email', 'Email', 'required|max_length[32]|valid_email|(!(is_unique[users.email]))');
But it seems not success as I expected, any recommends? Thanks.
is_unique-like function, likeis_presentand amend the validation logic to handle it. - wallyk