<CFIF isdefined("form.submit")>
 <CFLOOP collection="#form#" item="locField">
  <CFOUTPUT>
   #locField# = #evaluate("form.#locField#")#<BR>
  </CFOUTPUT>

 </CFLOOP>
</CFIF>
<CFFORM action="#cgi.script_name#" method="POST" enablecab="Yes">First Name:
<CFINPUT type="Text" name="fname" required="No"><BR>Last Name:
<CFINPUT type="Text" name="lname" required="No"><BR>
<INPUT type="Submit" name="submit" value="submit"></CFFORM>

jian xu
----- Original Message -----
From: Wesley Davidson <[EMAIL PROTECTED]>
To: CF-Server <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 2:50 PM
Subject: A generic Form Field Listing


> hello,
>   I am working on generic form field script that will take any form on our
> site and email me the contents of the variables.
>
> I know that there is a formfields list, or collection.
>
>   I am sure that this is a simple for loop grabing formfield collection
and
> going through the formfield name and value properties.
>
>   Can someone quick for loop example to do this.
>
>   Thanks,
> Wesley Davidson.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to