Form Checking – Verifying Name Using PHP Ereg
One important use of Regular Expressions (Regex) is to verify fields submitted via a form. In this article, we attempt to write an expression that is able to verify the user’s first name, middle name, last name or just names in general.
The expression should allow names such as “Mary”, “Mr. James Smith” and “Mrs O’Shea” [...]
