You're on the right track with it.  The only thing you're missing is an
Evaluate function to get the field values..

<cfloop index="test" list="#FORM.fieldnames#" delimiters=",">
#test# :     #Evaluate("FORM." & test)#  <br>
</cfloop>

This will dynamically evaluate the variable name that is constructed inside
the evaluate function.

_______________________________________

Justin Scott :: [Staff Developer]
http://www.annex.com


----- Original Message -----
From: "Willy Ray" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 7:48 AM
Subject: Kooky Form Field/List question.


This code puts the names of the form field onto the email.  Easy.  I can
also test them for whether or not they're one of my required fields, and not
print them if they are.   What I can't do is print the VALUE of the form
fields.  Make sense?  I was hoping I could do something like this:

<cfloop index="test" list="#FORM.fieldnames#" delimiters=",">
#test# :     #FORM.#test##  <br>
</cfloop>

Yeah, but I can't.  Any thoughts?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to