Welcome Guest, Not a member yet? Register   Sign In
Form validation error messages?
#5

[eluser]RecoilUK[/eluser]
Your point is?

The user_guide says nothing about accessing the second argument.

If you use this code ...
Code:
$this->form_validation->set_message('min_length', 'This field must contain at least %s characters.');

You get the name of field which is not what you want. So you have to use %s twice in the error message, and the whole point of my post was to not use the name in the message.

From my original question ...
Quote:I know how to show it with the name using the %s, but to get the number, you have to include the name.

Quote:Or maybe read closer?

Back at you.


Messages In This Thread
Form validation error messages? - by El Forum - 08-23-2012, 10:07 AM
Form validation error messages? - by El Forum - 08-23-2012, 10:36 AM
Form validation error messages? - by El Forum - 08-23-2012, 10:37 AM
Form validation error messages? - by El Forum - 08-23-2012, 10:59 AM
Form validation error messages? - by El Forum - 08-23-2012, 11:08 AM
Form validation error messages? - by El Forum - 08-23-2012, 11:30 AM
Form validation error messages? - by El Forum - 08-23-2012, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB