Welcome Guest, Not a member yet? Register   Sign In
Validation DECIMAL [parameters ???]
#4

[eluser]jprateragg[/eluser]
Well, you have two options. You can extend the form_validation class (MY_form_validation) and modify the decimal function, or you can create a helper function, name it something like 'dec_len($data, $length), and call that function in the form validation rules. In your rules, you would reference it simply as "function[2]", the number being the number of digits after the decimal you require.


Messages In This Thread
Validation DECIMAL [parameters ???] - by El Forum - 01-08-2013, 01:55 PM
Validation DECIMAL [parameters ???] - by El Forum - 01-08-2013, 05:38 PM
Validation DECIMAL [parameters ???] - by El Forum - 01-08-2013, 05:50 PM
Validation DECIMAL [parameters ???] - by El Forum - 01-08-2013, 06:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB