Here is one example:

<CFOUTPUT>
<CFLOOP COLLECTION="#Form#" ITEM="Field">
  Form.#Field# = #Form[Field]#<BR>
</CFLOOP>
</CFOUTPUT>

It simply uses the form as a structure and loops over the items. It will
tell you the field name and display the value.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Steven Monaghan [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, September 24, 2001 10:34 AM
> To: CF-Talk
> Subject: Find in-coming form fields
> 
> 
> I have a situation where I need to accept a form, but I don't 
> know the names of the form fields that are set.
> 
> I can't access the posting form, since it's hidden in someone 
> else's app, so I can't find the names that way.  I want to 
> build a simple page where I can accept the post, then dump 
> out all of the values in memory into an e-mail. I looked at 
> the <CFDUMP> tag, but that requires the variable name.
> 
> I'm new to Cold Fusion, so please indulge me if this is a simple task.
> 
> Thanks for any help,
> Steve
> -------------------------------------
> Steven Monaghan
> Oracle DBA / Cold Fusion Developer
> MSC Industrial Direct Co., Inc.
> Melville, NY
> [EMAIL PROTECTED]
> http://www.mscdirect.com
> -------------------------------------
> 
> 
> This e-mail is intended for the use of the addressee(s) only 
> and may contain privileged, confidential, or proprietary 
> information that is exempt from disclosure under law.  If you 
> are not the intended recipient, please do not read, copy, use 
> or disclose the contents of this communication to others. 
> Please notify the sender that you have received this e-mail 
> in error by replying to the e-mail.  Please then delete the 
> e-mail and destroy any 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to