CodeCanyon Data Validation class 70008

CodeCanyon Data Validation class 70008

CodeCanyon Data Validation class 70008
PHP Script \ Miscellaneous
Test \ Validation \ Variables \ Security \ Class \ Date \ Email \ Numeric \ Data

PHP Script - Data Validation class 70008 by Sitebase @ CodeCanyon

PHP Script \ Miscellaneous

Last Update: 13 November 09; Compatible Browsers: FireFox 2, FireFox 3, IE6, IE7, IE8, Safari; Software Version: PHP 5.x; Software Framework: N/A; Files Included: PHP.

The key to a stable and secure application or website is data validation. Validating things like email addresses, numbers, and other data can be very time consuming and add a lot of extra lines of code to your website if you want to do it the right way. This class can make the data validation part of website development a lot easier.

This class is very easy to use. Because all the methods are static they are faster and callable without instantiating the class. This will say that you only need to include the PHP file in your code and do the validations like below. The method returns a boolean (true when it’s valid, false when invalid). To show you some examples.

Email validation.

echo "Your email is invalid";

Email validation and don’t accept addresses that end with or

if(!ValidatorEmail("wim(at)", array("", ""))){
echo "Your email is invalid";

Check if a number is between 20 and 50.

if(!ValidatorNumber(35, 50, 20)){
echo "The number is not between 20 and 50";

Check if a user is older than 18.

if(!ValidatorOlderThan("1966-2-5", 17)){
echo "You must be older than 18.";


- Email

- Url

- IP

- Phone numbers

- Number (extra parameter to check if the number is between min and max)

- Unsigned Number

- Float

- Alpha

- Alpha numeric

- String length is between min and max characters

- Hexcolor

- Date

- Check if someone born on date x is older than x years

- Valid XML

- Filesize between min and max bytes

- Image dimensions between width is beween min and max and/or height is between min and max pixels


- Added chars validation

- Fixed Alpha method typo


- Added phone number validation

- Fixed wrong images

Google Maps for Mobile Site PRO; Twitter Wall for Mobile Site PRO; Mobile Site PRO; News Widget for WordPress; Testimonials for WordPress; API Client; Html Helper Class.

Keywords: data, date, email, numeric, php class, security, test, url, validation, variables.

Tags: Class, Validation, Variables, Security, Numeric, Email

Premium CodeCanyon Data Validation class 70008 WordPress Themes, Website Templates, Mobile Themes, Flash Templates & Scripts from creative professional designers. Full details of CodeCanyon Data Validation class 70008 for digital design and education. CodeCanyon Data Validation class 70008 desigen style information or anything related.


Add Comments:
Enter Code: *