home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / urlencodedformat.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  697 b   |  32 lines

  1. <!--- This example shows URLEncodedFormat --->
  2. <HTML>
  3.  
  4. <HEAD>
  5. <TITLE>
  6. URLEncodedFormat Example
  7. </TITLE>
  8. </HEAD>
  9.  
  10. <BODY bgcolor=silver>
  11.  
  12. <H3>URLEncodedFormat Example</H3>
  13.  
  14. <CFIF IsDefined("url.myExample")>
  15.  
  16. <P>The url variable url.myExample has been passed from the
  17. previous link ... its value is:
  18. <BR>"<CFOUTPUT>#url.myExample#</CFOUTPUT>"
  19.  
  20. </CFIF>
  21.  
  22. <P>This function returns a URL encoded string, making it 
  23. safe to pass strings through a URL.
  24. <CFSET the_string = "My url-encoded string has special characters & other stuff">
  25.  
  26. <P><a href="urlencodedformat.cfm?myExample=<CFOUTPUT>#URLEncodedFormat("#the_string#")#</CFOUTPUT>">Click me</A>
  27.  
  28.  
  29. </BODY>
  30.  
  31. </HTML>       
  32.