Welcome Guest, Not a member yet? Register   Sign In
Form validation message
#2

[eluser]sukuiter[/eluser]
I just solved this problem.. You need to pass the function name to the custom function also.
The problem is because of the rule name must be the same name as the function caller.

Code:
$this->form_validation->set_message($your_rule_name, 'The %s field must contain a number greater than zero.');

Sorry if making this thread cause you trouble.


Messages In This Thread
Form validation message - by El Forum - 04-18-2011, 03:28 AM
Form validation message - by El Forum - 04-18-2011, 03:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB