I’ve just updated the PHP Validation script to version 2.3, to match the latest features in the JS Validation sister script.
The new features are:
- a new custom_alpha validation rule, which lets you validate strings according to extremely specific criteria. You can specify whether a character at a particular position is a uppercase or lowercase letter, consonant or vowel, or a number between 0-9 or 1-9. This is something of a layman’s version of this second feature:
- a new reg_exp validation rule which lets you validate the contents of a form field based on a regular expression. This is really only intended for programmers already familiar with regular expressions.
In addition to these new additions, I updated the demo form to highlight the new features and improved the documentation on both the PHP and JS Validation scripts. Hopefully this will make the script a little more approachable and easier to understand.
Recent Comments