By: D Evans

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>

About This Tutorial
Author: D Evans
Skill Level: Beginner 
 
 
 
Platforms Tested: CF5
Total Views: 39,074
Submission Date: December 13, 2002
Last Update Date: June 05, 2009
All Tutorials By This Autor: 4
Discuss This Tutorial
  • FieldNames does not exist in MX7 ...

  • Why not just use

Advertisement

Sponsored By...
Powered By...