home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows URLEncodedFormat --->
- <HTML>
-
- <HEAD>
- <TITLE>
- URLEncodedFormat Example
- </TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>URLEncodedFormat Example</H3>
-
- <CFIF IsDefined("url.myExample")>
-
- <P>The url variable url.myExample has been passed from the
- previous link ... its value is:
- <BR>"<CFOUTPUT>#url.myExample#</CFOUTPUT>"
-
- </CFIF>
-
- <P>This function returns a URL encoded string, making it
- safe to pass strings through a URL.
- <CFSET the_string = "My url-encoded string has special characters & other stuff">
-
- <P><a href="urlencodedformat.cfm?myExample=<CFOUTPUT>#URLEncodedFormat(the_string)#</CFOUTPUT>">Click me</A>
-
-
- </BODY>
-
- </HTML>
-