WriteOutput

Appends text to the page output stream.

Note: When within the CFQUERY tag, the WriteOutput function does not output to the current page, but instead writes to the current SQL statement. Do not use WriteOutput within CFQUERY.

Syntax

WriteOutput(string)
string

Text to be appended to the page output stream.

Examples

...
<CFSET rCode=employee=StructNew()>
<CFSET rCode=StructInsert(employee, "firstname", "#FORM.firstname#")>
<CFSET rCode=StructInsert(employee, "lastname", "#FORM.lastname#")>
<CFSET rCode=StructInsert(employee, "email", "#FORM.email#")>
<CFSET rCode=StructInsert(employee, "phone", "#FORM.phone#")>
<CFSET rCode=StructInsert(employee, "department", "#FORM.department#")>
<CFSET rCode=WriteOutput("About to add " & "#FORM.firstname#" & " " &
      "#FORM.lastname#")>
...