tags:

views:

24

answers:

3

Hello all,

I am using jQuery Form Validation Plugin to do comprehensive client side validation.

Now I would like to use PHP to do the server side validation.

Check whether the email is email, age is in the right range, etc.

Is there similar package or function collections that I can use rather than write all validation method manually?

Thank you

+1  A: 

If you're writing more or less complex application, you probably would benefit from using a framework, such as Zend Framework for instance. It has some standalone classes to aid validation process as well, for example Zend_Validate: http://framework.zend.com/manual/en/zend.validate.html

Alex N.
Is Zend Framwork free? I was told that we have to pay for the framework
q0987
Yes, Zend Framework is absolutely free and open source - http://framework.zend.com/about/overview
Alex N.
+1  A: 

The closest thing that's bundled with PHP is the filter extension. It does validation and sanitization.

Artefacto
+1  A: 

for email validation you can use is_email function. Check the link:http://www.ohloh.net/p/isemail

Ankur Mukherjee