Summary

Using ColdFusion variables to control or enhance input and output is one of the keys to creating more sophisticated applications. CF templates work with several types of variables; some are defined by query results, some by user input, and still others can be defined arbitrarily by the developer. Any of these variable types can be used in conditional statements to produce enhanced output.

A powerful tool, ColdFusion's <CFIF> tag family enables the developer to state a condition or conditions that must occur before an action is taken. An example is a password-protected application in which a user's supplied password must match with one stored in a database before further surfing or input is permitted.

Developer-defined variables are established ...

Get Sams Teach Yourself ColdFusion® in 21 Days 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.