Putting It All Together

Before you run off and plug <cfform> and <cfinput> into all your templates, there are some other details that you should know:

  • Not all browsers support JavaScript. Most newer ones do, but there still are older ones out there. Browsers that don’t support JavaScript will generally ignore it, enabling your forms to be submitted without being validated if only client-side validation is used.

  • You should combine the use of JavaScript validation with server-side validation. These will never fail validation if the browser does support JavaScript, and if the browser doesn’t, at least you have some form of validation.

  • Don’t rely solely on automatically generated server-side validation (via embedded hidden fields). Clever hackers could ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.