CFML Coding Style Guide

In addition to the general coding guidelines above, keep the following suggestions in mind when coding your ColdFusion application pages:

Pay attention to naming conventions for variables and form fields

When naming ColdFusion variables and form fields, note these guidelines:

Note If the text in form fields in your ColdFusion applications might contain special characters (> < " &), use the CFML function HTMLCodeFormat or EditFormat to make sure that these special characters are escaped.

Use scopes, or qualifiers, for variables

ColdFusion distinguishes between identically-named parameters from different sources using prefixes for each source, or "scopes". For example, client variables use the prefix Client.variable.name.

For more information, see Developing Web Applications with ColdFusion.

Use pound signs (#) where needed

For detailed information on specific CFML functions and tags, see the CFML Language Reference.