I am trying to find a form builder in php which will automatically validate the fields preferably using jquery and allow me to submit the form via ajax.
So far I have been looking at http://www.imavex.com/php-form-builder-class/examples/ajax.php
which allows me to submit the form via ajax. However I cannot see an example for this tool which would let me add my own custom validation function. For example I might be registering a new user and want to check that their email address isnt already in the database. I would need to add a custom validation function and error message to the email field and in this instance the validation function would be an ajax call in itself.
Please can anyone provide an example of a custom validation function which adds a specific validation and error message to a specified field. I doesnt matter if the custom function is ajax or not or just client side but an ajax example would be preferable.
I can do this type of validation with the jquery validation plugin so I am presuming it should be possible in these tools. It seems such a common requirement
Many thanks in advance for any help you can give.