Allows area codes with or without parentheses, and hyphens (-), spaces, periods, or no separators between standard number groups.
My problem is that for the others fields I am using j Query Validation Plugin 1.9.0 but if the field is hidden the script doesn't work on it.
If you use Perl, this task is made simpler by the CGI:: Validate module, which provides a bunch of built-in methods to verify the data entered by the user.
If you've used Getopt:: Long before, you know it can be used to read and validate command-line arguments to a Perl script.
The CGI:: Validate module brings this capability to the Web, combining the parsing and validation routines of Getopt:: Long with the methods in the CGI module.
You can set rules for each form field, defining its data type, and whether it is required or optional.
My aim is to request that field with name = "name1" and "name2" contain a string of two (not more not less) letters (not numbers) to submit the form.Consider a simple Web form that asks users for their age and e-mail address, then saves the data into a database when they submit the form.Most genuine users will enter correct data in these fields, it will go to your database, and everything will be hunky-dory.Any value (including an integer) that can be represented as a floating point number with up to 12 significant digits.Treats the initial characters "$ ¤ ¥ £ ” as valid input, but removes them from the number.