You can put variables or functions freely inside the bodies of the following tags by enclosing each variable or expression with number signs:
For example:
<cfoutput> Value is #Form.MyTextField# </cfoutput> <cfoutput> The name is #FirstName# #LastName#. </cfoutput> <cfoutput> The value of Cos(0) is #Cos(0)# </cfoutput>
If you omit the number signs, the text, rather than the value, appears in the output generated by the cfoutput statement.
Two expressions inside number signs can be adjacent to one another, as in the following example:
<cfoutput> "Mo" and "nk" is #Left("Moon", 2)##Mid("Monkey", 3, 2)# </cfoutput>
This code displays the following text:
"Mo" and "nk" is Monk
ColdFusion does not interpret the double number sign as an escaped # character.