• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2.5. Writing Output

To output the contents or results of a ColdFusion expression, you use the <CFOUTPUT> tag. CFOUTPUT is a paired tag, which means that it has both start and end tags. CFOUTPUT tells ColdFusion to parse any text found between the tag pairs for variables and expressions that need to be evaluated. We'll use the CFOUTPUT tag in a variety of ways throughout the book; it is one of the most commonly used CFML tag. For now, let's focus on how the CFOUTPUT tag outputs simple variable values.

The following example creates a number of variables using CFSET tags and then outputs the values of the variables within CFOUTPUT tags:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint