Macromedia ColdFusion 5 Training from the Source (With CD-ROM)

I l @ ve RuBoard

Used to make a variable safe to pass through a URL.

Syntax

URLEncodedFormat(value_to_URLEncode)

Parameters

String: The function must have a value to URL encode.

Example

<!--- URL Encode a name before passing it to another template ---> <cfset name ="Doug Bentley"> <cfoutput> <a href="name.cfm?name=#URLEncodedFormat(name)#">Name</a> </cfoutput>

I l @ ve RuBoard

Категории