If I understand you right, I think you want to do this:

<CFSET v_field_list = "field1,field2,field3">
<CFLOOP INDEX="v_cur_field" LIST="#v_field_list#">
        <CFIF IsDefined("FORM.#v_cur_field#)">
                <CFSET v_cur_value = Evaluate("FORM.#v_cur_field#")>
                <CFOUTPUT>#v_cur_value#<BR></CFOUTPUT>
        </CFIF>
</CFLOOP>

This will then output the value of any field in the list that is defined in
the FORM scope. 

If all you want to do is output the FORM values that were passed, a better
way would be to loop the special variable FORM.FieldNames which has a list
of all the FORM variables that were passed because then you wouldn't need to
test for the variables existance. But the technique above is a necessary if
you're trying to display a consistent list even though the form may not be
passing back all the fields it showed to the user, like the case when
checkboxes are submitted unchecked.

-Chris Gilbert, Fodors.com

-----Original Message-----
From: Roberto Esteves [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 6:44 PM
To: CF-Server
Subject: help


 <CFIF IsDefined("FORM.xxxx")> can i put a variable here ?

Atte.
Roberto Esteves 
guayaquil - Ecuador
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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