User Guide
34 CFML Quick Reference
<CFSET Request.field_name3 = "value">
...
Each nested tag can access the variable with the cfoutput
tag, as follows:
<CFOUTPUT>#Request.field_name1#</CFOUTPUT>
Form variable
ColdFusion supports the Form variable FieldNames.
FieldNames returns the names of the fields on a form. You
use it on the action page associated with a form, as follows:
Form.FieldNames
ColdFusion tag-specific variables
Some ColdFusion tags return data as variables. For
example, the
cffile tag returns file size information in the
FileSize variable, referenced as CFFILE.FileSize.
The following tags return data that can be referenced in
variables:
cfcatch
cfdirectory
cferror
cffile
cfftp
cfhttp
cfindex
cfldap
cfpop
cfquery
cfregistry
cfsearch
cfstoredproc
ColdFusion query variables
A ColdFusion tag that returns a query object supports the
following variables, where
queryname is the value of the name
attribute:
queryname.CurrentRow
queryname.RecordCount
queryname.ColumnList
CFCATCH variables
Within a cfcatch block, the active exception properties can
be accessed as the following variables:
CFCATCH.Type
CFCATCH.Message
CFCATCH.Detail
CFCATCH.ErrNumber
CFCATCH.NativeErrorCode
CFCATCH.SQLState
CFCATCH.LockName
CFCATCH.LockOperation
CFCATCH.MissingFileName
CFCATCH.TagContext
CFCATCH.ErrorCode
CFCATCH.ExtendedInfo
Within a cfcatch block, database exception properties can
be accessed as the following variables:
CFCATCH.QueryError
CFCATCH.SQL
CFCATCH.Where
CFCATCH.Datasource
Within a cfcatch block, undefined variable exception
properties can be accessed as the following variable:
CFCATCH.Name
Within a cfcatch block, syntax and parsing exception
properties can be accessed as the following variables:
CFCATCH.TokenText
CFCATCH.Snippet