MACROMEDIA COLFUSION MX 7-CFML Reference page 900

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

Usage
URL encoding formats some characters with a percent sign and the two-character hexadecimal
representation of the character. For example, a character whose code is 129 is encoded as
space is encoded with a plus sign.
Query strings in HTTP are always URL-encoded.
Example
<h3>URLEncodedFormat Example</h3>
<cfif IsDefined("url.myExample")>
<p>The url variable url.myExample was passed from the previous link ...
its value is:
<br><b>"<cfoutput>#url.myExample#</cfoutput>"</b>
</cfif>
<p>This function returns a URL encoded string.
<cfset s = "My url-encoded string has special characters & other stuff">
<p> <A HREF = "urlencodedformat.cfm?myExample=<cfoutput>#URLEncodedFormat(s)#
</cfoutput>">Click me</A>
900
Chapter 3: ColdFusion Functions
. A
%81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents