My validate function looks like that Function call example As you see, my validate function has 3 input vars. I’m not using second var – $data2 often, that’s why set it to 0 by default. But when I’m calling this function as given example (as far as I know it means $data=$lname, $data2=0, $type=’name’) getting error message How can I
Tag: validation
Php Sanitize and Validate form with some character exceptions
I’m using in Php Sanitize and Validate Filters but I have problems to add some rules, I have some basic knowledge of php so I think this question is easy for you. I need to add a minimum and maximum number of characters (14-15) and I want to accept this characters ( – or space ) .The exact sequence is
PHP using an array in a Validation Class
On my site I have my register page, where a user inputs his information to register to my site. When he does the I process the user inputted information. Now when processing it I’m using arrays to facilitate the process, and not have me write the same code over and over. For example, here is how I gather the user
How to validate a PHP file with W3C.org
I want to validate my PHP project to meet the W3C standard. Can some one explain how to do the PHP file validation using W3C.org? Is it possible to validate PHP files from the linux console?
Decimal validation + PHP?
How to do decimal number validation in PHP? (The decimal point is optional) it should accept … 0 , 1 , 2 , 0.123 , 0.2 , 12.34 etc. Answer Would any of these suit your needs? is_float() is_numeric()