CodeIgniter Forums
Validation 'alpha' problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Validation 'alpha' problem (/showthread.php?tid=74150)



Validation 'alpha' problem - bomi - 08-02-2019

Hi. I am using form_validation at one input. I set the rule alpha. But also this blocks Turkish characters at this input. What should i do? Form validation thinks the Turkish characters are not alphabetical.

Thanks.  Blush


RE: Validation 'alpha' problem - includebeer - 08-02-2019

I think you have no other choice but to validate your string with a regex. You can use the regex_match rule, or even better, create a custom rule

PS: Those links are for CI4.


RE: Validation 'alpha' problem - bomi - 08-03-2019

(08-02-2019, 11:19 AM)includebeer Wrote: I think you have no other choice but to validate your string with a regex. You can use the regex_match rule, or even better, create a custom rule

PS: Those links are for CI4.

Thanks