User Guide
cfparam 325
cfparam
Description
Tests for the existence of a parameter (that is, a variable), validates its data, and, if a default value
is not assigned, optionally provides one.
Category
Variable manipulation tags
Syntax
<cfparam
name = "param_name"
type = "data_type"
default = "value"
max = "value"
min = "value"
pattern = "regular expression">
See also
cfcookie
, cfregistry, cfsavecontent, cfschedule, cfset; “Validating data with the IsValid
function and the cfparam tag” in Chapter 28, “Validating Data,” in ColdFusion MX Developer’s
Guide
History
ColdFusion MX 7:
• Added min, max, and pattern attributes.
• Added creditcard, email, eurodate, float, integer, range, regex, regular_expression, ssn,
social_security_number, time, URL, USdate, and zipcode attributes of the
type attribute.