home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Documentation / snippets / cfhttpparam.cfm < prev    next >
Encoding:
Text File  |  1999-04-12  |  1.4 KB  |  52 lines

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