[eluser]suba[/eluser]
Hi,
Thanks.
I did not put required in rule.
If the field is empty, there is no error message.
If the field has non empty AND has A or B or C or D there is no error message.
If the filed has non empty and other than A OR B or C or D, there is error message.
I want to check other than empty , A, C ,D values.
Code:
$this->form_validation->set_rules('mark','mark','matches[ABCD]');