<div id="results">
<h2>Form Results</h2>
<!--- Check if form was submitted using POST --->
<cfif LCase(cgi.request_method) eq "post">
  <cfoutput>
    <p>The following FORM variables were submitted by <br />
    <a href="#cgi.http_referer#">#cgi.http_referer#</a>:</p>
    <p>
    <!--- Loop through field names and values --->
    <cfloop list="#form.fieldnames#" index="field">
      <strong>#field#</strong>: #form[field]#<br />
    </cfloop>
    </p>
  </cfoutput>

<!--- Check if form was submitted using GET --->
<cfelseif LCase(cgi.request_method) eq "get" and StructCount(url) neq 0>
  <cfset key_list = StructKeyList(url) />
  <cfoutput>
    <p>The following URL variables were submitted by <br />
    <a href="#cgi.http_referer#">#cgi.http_referer#</a>:</p>
    <p>
    <!--- Loop through field names and values --->
    <cfloop list="#key_list#" index="field">
      <strong>#field#</strong>: #url[field]#<br />
    </cfloop>
    </p>
  </cfoutput>

<!--- Display alternate message --->
<cfelse>
  <p>No form was submitted to this page.</p>
</cfif>
</div>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:249222
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to