Contents > CFML Reference > ColdFusion Functions > WriteOutput PreviousNext

WriteOutput

Appends text to the page-output stream.

This function writes to the page-output stream regardless of conditions established by the cfsetting tag.

Other functions

WriteOutput(string)

Parameter

Description

string

A string or a variable that contains one

Within the cfquery and cfmail tags, this function does not output to the current page; it writes to the current SQL statement or mail text. Do not use WriteOutput within cfquery and cfmail.

Although you can call this function anywhere within a page, it is most useful inside a cfscript block.

...
<cfscript>
  employee = StructNew();
  StructInsert(employee, "firstname", FORM.firstname);
  StructInsert(employee, "lastname", FORM.lastname);
  StructInsert(employee, "email", FORM.email);
  StructInsert(employee, "phone", FORM.phone);
  StructInsert(employee, "department", FORM.department);
  WriteOutput("About to add " & FORM.firstname & " " & FORM.lastname);
</cfscript>


Contents > CFML Reference > ColdFusion Functions > WriteOutput PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funca120.htm