O'Reilly logo

Web Developer’s Cookbook: More Than 300 Ready-Made PHP, JavaScript, and CSS Recipes by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 22
image
Forms and Validation
Form validation is something you must do on your web server to ensure that you receive the data that is required and to remove, as much as possible, any vulnerabilities to hacking or the possibility of your server being compromised, as well as the data on it. However, it is very helpful to your users if you also provide validation directly in the browser.
For example, it can be particularly helpful to provide extra assistance when a user is filling in a form to save it from having to be re-presented to them if it fails validation at the server. It also cuts down on your bandwidth usage and keeps the optimum number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required