FieldNames does not exist in MX7 ...
Checking for submitted form fields
Write this code into .cfm page. Make the action of the form refer to this page and it will show you all of the fields that are being submitted.
Basically this sets all of the submitted form fields and values into a list then loops through the list of fields and values.
<cfloop index="thefield"
list="#form.fieldnames#">
<cfset fields="#thefield# =
#evaluate(thefield)#">
<cfoutput>#fields#</cfoutput><br>
</cfloop>
FieldNames does not exist in MX7 ...
Why not just use