Welcome Guest, Not a member yet? Register   Sign In
I need someone Help.
#1

(This post was last modified: 09-07-2022, 06:52 AM by php_rocs.)

Hi everybody! I’m Johnny Ufabet, CI have the following native rules that are available to use; alpha, alpha_numeric, alpha_numeric_spaces, alpha_dash and so on... but what if I want to validate a form field for a title or subject with the following common characters; ? ! $ & @
Is there a way to add those to the following native rules; alpha_numeric, alpha_numeric_spaces?
Thank You!
Reply
#2

regex
Reply
#3

https://codeigniter4.github.io/userguide...stom-rules

Add your new class rule or use regex_match[/regex/] in rules
Reply




Theme © iAndrew 2016 - Forum software by © MyBB