Welcome Guest, Not a member yet? Register   Sign In
Form validation and native PHP functions
#2

(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.
Reply


Messages In This Thread
RE: Form validation and native PHP functions - by Martin7483 - 06-20-2017, 05:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB