Find All Form Fields

When a form is submitted to ColdFusion a variable named FORM.FieldNames will automatically be created containing the names of all the submitted form fields. The names are in a comma delimited list, so the List functions and can easily be used to manipulate and access them. But one thing to note – multiple form fields with the same name will be listed multiple times in the list, once for each occurrence, even though accessing the name will return all the values from all the occurrences. (Applies to: ColdFusion All)

Leave a Reply