home *** CD-ROM | disk | FTP | other *** search
- <!--- This example shows the use of CFHTTPPARAM --->
- <HTML>
- <HEAD>
- <TITLE>CFHTTPPARAM Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
- <H3>CFHTTPPARAM Example</H3>
-
- <P>This view-only example shows the use of CFHTTPPARAM
- to show the values of passed variables on another HTML
- reference, accessed by CFHTTP. The other file
- could simply output the value of form.formtest,
- url.url_test, cgi.cgi_test, and
- cookie.cookie_test to prove that this page is working:
-
- <H3>Sample Other File Listing</H3>
- <CFOUTPUT>#HTMLCodeFormat("
- <HTML>
- <HEAD>
- <TITLE>Sample Page</TITLE>
- </HEAD>
- <BODY>
- <H3>Output the passed variables</H3>
- <CFOUTPUT>
- Form variable: ##form.form_test##
- <br>URL variable: ##URL.url_test##
- <br>Cookie variable: ##Cookie.cookie_test##
- <br>CGI variable: ##CGI.cgi_test##
- </CFOUTPUT>
- </BODY>
- </HTML>
- ")#</CFOUTPUT>
-
- <H3>For CFHTTPPARAM code, see right frame</H3>
- <P>
- <!------------------------------------------------------------------
- <CFHTTP METHOD="POST" URL="http://localhost/someotherfile.cfm">
- <CFHTTPPARAM NAME="form_test" TYPE="FormField"
- VALUE="This is a form variable">
- <CFHTTPPARAM NAME="url_test" TYPE="URL" VALUE="This is a URL variable">
- <CFHTTPPARAM NAME="cgi_test" TYPE="CGI" VALUE="This is a CGI variable">
- <CFHTTPPARAM NAME="cookie_test" TYPE="Cookie" VALUE="This is a cookie">
- </CFHTTP>
-
- <CFOUTPUT>
- #CFHTTP.FileContent#
- </CFOUTPUT>
- ------------------------------------------------------------------>
-
- </BODY>
- </HTML>