• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.