We help IT Professionals succeed at work.

How can I print all the elements in a form

simi
simi asked
on
The question is contained in the title.
What I need to do is to print all elements and their values in a form.
I want to be able to loop through them, without having to know their names or values.
Thanks.
Comment
Watch Question

Commented:
<CFOUTPUT>
<CFLOOP INDEX="formfield" LIST="#FORM.FieldNames#" DELIMITERS=",">
     #formfield# = #Evaluate("FORM.#formfield#")#<BR>
</CFLOOP>
</CFOUTPUT>

Author

Commented:
Thanks.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.