Welcome Guest, Not a member yet? Register   Sign In
One question about the validation error message
#1

[eluser]luffy[/eluser]
The code below:

$this->form_validation->set_rules('username', 'username', 'required');

$this->form_validation->set_rules('content', 'content', 'required');

$this->form_validation->set_message('required', 'custom message');

For example:
If I want to show the "username error" and "content error"
How to use the set_message?
Because their rule is the same.


Messages In This Thread
One question about the validation error message - by El Forum - 10-14-2009, 05:11 AM
One question about the validation error message - by El Forum - 10-14-2009, 05:29 AM
One question about the validation error message - by El Forum - 10-14-2009, 05:31 AM
One question about the validation error message - by El Forum - 10-15-2009, 01:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB