I used jquery validation for front-end data validate. But i need to do validate on sever-side as well.
I’m looking for a good validation library in php which has the features as many as jquery validation, including required field, check email, check number, min-length, max-length, equalto another field and custom validate method.
I’m using codeigniter and i found that it has a form_validate library, it has most of the features in jquery validation but it can not be used without codeigniter and its erroer report is a html snippet not an array structure. I also want to use it in a restful service.
So if there is another library which can do the job like jquery validation i will use that one or i may need to do some work to modify the codeigniter form validation myself.
Thanks in advance.
Here are a couple of php validation classes:
http://codecanyon.net/item/easyvalidation-php-special-validation-class/521960
http://taggedzi.com/articles/display/validation-class-for-php
http://www.phpclasses.org/package/7120-PHP-Validate-input-values-according-to-many-rules.html
http://www.jasonashdown.co.uk/2008/08/php-validation-class-for-forms/
This one compliments JQuery.
http://code.google.com/p/jquery-validation-php-plugin/