Interacting with PHP for Server-side Data Validation with AJAX
Looking for new and creative ways to empower your AJAX-driven Web applications? Then you’ve landed at the right place. Welcome to the final part of the series “Server-side Data Validation with AJAX.” In three tutorials, this series demonstrates how to build a simple form checking system which uses AJAX to performing server-side validation on the data supplied by users.
Interacting with PHP for Server-side Data Validation with AJAX (Page 1 of 4 )
The complete client-side source code of this AJAX application has been developed already. You also know each time a user enters data in a particular form field because this input is submitted to the server in the background. So the only programming block that remains to be built is the one related to executing server validation on the data itself.
In this concluding part, I'll write a PHP class that will be responsible for checking the validity of the data submitted with AJAX, in this way completing the entire application. Thus, let's waste no more time in preliminaries and see how the PHP class that I mentioned before will be properly coded.