[eluser]escape[/eluser]
I have a simple form which I validate the input with:
Code:
$this->load->library('form_validation');
$this->form_validation->set_rules('first_name','FIRST NAME','required');
$this->form_validation->set_message('first_name', 'My Error Message');
if ($this->form_validation->run() == FALSE)
{
$err['error_first_name'] = form_error('first_name');
}
The form catches the validation rule, however the message displayed
(via $err['error_seller_first_name'] = form_error('first_name') is the default CI error message
Quote:The FIRST NAME field is required.
I was expecting the custom error 'My Error Message' to be displayed, but that doesn't seem to be the case.
What am I missing here? :question:
Thanks
BTW: $err['error_first_name'] is being parsed in the posting form.