Tag Archives: validation
Contact Form 7 is the most simple and straight forward form plugin for WordPress. It has been downloaded nearly 10 million times. It has everything to set up a simple contact form except one thing, that is, validation of a phone or fax number. This short snippet validates phone number by stripping of all non-numeric characters and checking if numeric string is of length 10 digits.