PHP validation and verification

posted on November 22, 2007, 12:18 pm
Comments
Janckos posted on September 19, 2008, 1:46 pm
nice code, thank u.

Sankara posted on July 29, 2008, 10:07 pm
I LIKE THAT VALIDATION CODE..EASE TO USE.. NICE

Jay posted on May 20, 2008, 12:03 am
Thank you for the helpful article. I would add that email addresses can have dashes in the domain name as well. In this case how do you add a dash to the \w without rewriting it as [0-9a-zA-Z_-] ?

John posted on May 19, 2008, 7:53 pm
Thank you for the brilliant explanation. I just want to add that in the case of the surname, we ought to include an apostrophe. We do have names like O'Connor and O'Reilly.
-------------
Veselin: you can use
if(preg_match("/^[A-Z][a-zA-Z -']+$/", $_POST["name"]) === 0)

satisfied posted on May 17, 2008, 6:51 am
this script is what i need, thanks !

Alisa posted on April 24, 2008, 7:40 am
I love this website. Very useful and helpful information. Thank you.

Ogolotse posted on December 11, 2007, 9:34 am
I am impressed with the validation using the regular expression.
it is easy and user may understand it good work keep it up.i will like to get new update about php.

Ogolotse


Pages:   1   2   
   
If you have any additions, suggestions or modifications for this example please contact us or use the form below.
   
Your name:
Your email: (email address will not be posted on the web site)
Comment:
Verification