Better this way:

<cfloop list="#form.fieldnames#" index="thisField">
        <cfoutput>
                #thisField# = #form[thisField]# <br />
        </cfoutput>
</cfloop>

> -----Original Message-----
> From: Duane [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 16, 2006 10:42 PM
> To: CF-Community
> Subject: RE: need help quick
> 
> <cfloop list="#form.fieldnames#" index="thisField">
> <cfoutput>#thisField# = #evaluate("form.#thisField#")#</cfoutput><br>
> </cfloop>
> 
> Should do it for you
> 
> -----Original Message-----
> From: Maureen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 16, 2006 11:32 PM
> To: CF-Community
> Subject: need help quick
> 
> I know this should probably in CF-Talk but I can't remember my login
> for that list so maybe some here could help me quickly.
> 
> I need the exact syntax to loop over all fields in a form and get both
> the form field name and the field value.
> 
> Thanks,
>   Maureen
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:206885
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to