WriteOutput

Description

Appends text to the page output stream. Although you can call this function anywhere within a page, it is most useful inside a cfscript block.

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

Category

Other functions

Syntax


WriteOutput(string) 

Parameters

Parameter
Description
string
Text to append to the page output stream

Usage

Within the cfquery and cfmail tags, the WriteOutput 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.

Example

...

<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>

...





Banner.Novgorod.Ru