O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

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

Pros and Cons of Each Option

Neither of these options is perfect, and they are thus often used together, complementing each other. Table 13.1 lists the pros and cons of each option.

Table 13.1. The Pros and Cons of Client and Server Form Validation
Validation TypeProsCons
Server-sideVery safe, will always work, regardless of the browser used and any browser settingsNot very user-friendly, user must submit form before validation occurs; any errors require resubmission
Client-sideMore user-friendly, users prefer knowing what is wrong before form submissionLess safe, not supported by some older browsers; can be disabled, scripting languages have a lengthy learning curve

From a user’s perspective, client-side validation is preferable. Obviously, users ...

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