Form validation and native PHP functions |
06-20-2017, 05:33 AM
(This post was last modified: 06-20-2017, 05:34 AM by Martin7483. Edit Reason: typo )
The only rule that could fail on validation is the required rule. Because something has been provided it will pass as valid.
trim and strtolower are string prepping functions. All you are doing is telling CI to run the native PHP functions to make sure all white space is removed and that all characters are lowercase. If you want the validation to fail based on these rules you should create your own validation rule to do so. |
Messages In This Thread |
Form validation and native PHP functions - by cvetan - 06-20-2017, 05:23 AM
RE: Form validation and native PHP functions - by Martin7483 - 06-20-2017, 05:33 AM
RE: Form validation and native PHP functions - by cvetan - 06-20-2017, 06:23 AM
RE: Form validation and native PHP functions - by Martin7483 - 06-20-2017, 06:47 AM
RE: Form validation and native PHP functions - by Martin7483 - 06-20-2017, 07:02 AM
|