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

  1. <!--- This example shows the use of CFHTTPPARAM --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>CFHTTPPARAM Example</TITLE>
  5. </HEAD>
  6.  
  7. <BODY bgcolor=silver>
  8. <H3>CFHTTPPARAM Example</H3>
  9.  
  10. <P>This view-only example shows the use of CFHTTPPARAM 
  11. to show the values of passed variables on another HTML
  12. reference, accessed by CFHTTP.  The other file 
  13. could simply output the value of form.formtest, 
  14. url.url_test, cgi.cgi_test, and
  15. cookie.cookie_test to prove that this page is working:
  16.  
  17. <H3>Sample Other File Listing</H3>
  18. <CFOUTPUT>#HTMLCodeFormat("
  19. <HTML>
  20. <HEAD>
  21. <TITLE>Sample Page</TITLE>
  22. </HEAD>
  23. <BODY>
  24. <H3>Output the passed variables</H3>
  25. <CFOUTPUT>
  26. Form variable: ##form.form_test##
  27. <br>URL variable: ##URL.url_test##
  28. <br>Cookie variable: ##Cookie.cookie_test##
  29. <br>CGI variable: ##CGI.cgi_test##
  30. </CFOUTPUT>
  31. </BODY>
  32. </HTML>
  33. ")#</CFOUTPUT>
  34.  
  35. <H3>For CFHTTPPARAM code, see View Example frame</H3>
  36. <!--- <P>
  37. <CFHTTP METHOD="POST" URL="http://localhost/someotherfile.cfm">
  38.         <CFHTTPPARAM NAME="form_test" TYPE="FormField" VALUE="This is a form variable">
  39.         <CFHTTPPARAM NAME="url_test" TYPE="URL" VALUE="This is a URL variable">
  40.         <CFHTTPPARAM NAME="cgi_test" TYPE="CGI" VALUE="This is a CGI variable">
  41.         <CFHTTPPARAM NAME="cookie_test" TYPE="Coookie" VALUE="This is a cookie">
  42. </CFHTTP>
  43.  
  44. <CFOUTPUT>
  45.         #CFHTTP.FileContent#
  46. </CFOUTPUT> --->
  47.  
  48. </BODY>
  49. </HTML>       
  50.