News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Roane's Blog:
Advanced PHP Form Validation
May 09, 2011 @ 10:57:51

In a new post to his blog Chris Roane looks at a method for some advanced form validation using both server-side and client-side validation (with the help of jQuery).

Last year I wrote an article in how to implement basic validation for a form with PHP. I decided to re-look at this and improve what I did in that article. This time we are going to make a more advanced PHP form that is more responsive and effective. This PHP sample code has many advantages over the previous article. Not only that, but for the most part it is easier to implement with more complexed forms where you need more than basic validation.

He uses PHP5, jQuery and a helpful validation plugin than handles a lot of the heavy lifting for you in defining a validate() method with the field names and checks to perform on them. You just apply this to the form and it works like magic. Don't forget the backend though - he includes code to check for things like values being set and specific checks on a few fields.

0 comments voice your opinion now!
advanced form validation jquery tutorial


blog comments powered by Disqus

Similar Posts

TechChorus Blog: Create RESTful Applications Using The Zend Framework

Stefan Mischook's Blog: Object Oriented PHP Videos are now out!

Mathias Noback: Collecting events and the event dispatching command bus

Padraic Brady's Blog: Mysteries Of Asynchronous Processing w/PHP - Pt 3: Spawned Child Processes

Zend Developer Zone: Building Template-Driven Web Applications with Dwoo (part 1)


Community Events

Don't see your event here?
Let us know!


introduction example library php7 version interview language unittest laravel list opinion release framework voicesoftheelephpant video series community laravel5 podcast api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework