The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Commas in error message (PHP Validation) [How-To] - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18) +--- Thread: Commas in error message (PHP Validation) [How-To] (/showthread.php?tid=876) |
Commas in error message (PHP Validation) [How-To] - Mike - Oct 3rd, 2010 Quote:Note: your error message cannot contain commas. This is currently a limitation of the script. I don't like this limitation, because my language requires comma after "Please" ![]() I want to suggest a little fix in file \global\code\validation.php If replace: PHP Code: function validate_fields($fields, $rules) at: PHP Code: function validate_fields($fields, $rules, $splitter = ",") nobody be affected, but everyone obtain possibility to use any character for separating components of $rules[] (I prefer the semicolon): PHP Code: $rules[] = "valid_email;email;Oh, no, you really think that it looks like the email?"; ![]() |