![]() |
Form validation - i18n input - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form validation - i18n input (/showthread.php?tid=57482) |
Form validation - i18n input - El Forum - 03-18-2013 [eluser]bartgrrr[/eluser] Hi, I've a problem with my form validation rules. The '.' and ',' can be my decimal seperator! The user must be able to enter a decimal number in both formats (e.g. 999.99 or 999,99). My validation rules contain something like: Code: $config = array( 999.99 validates, 999,99 isn't validated with the above code fragment. What is the best way to solve this problem? Form validation - i18n input - El Forum - 03-18-2013 [eluser]TheFuzzy0ne[/eluser] You can create a custom callback. |