Working with Form Arrays in ColdFusion?

后端 未结 7 2069
旧时难觅i
旧时难觅i 2021-01-17 23:17

I have no idea how to handle this in ColdFusion 9, I have a form being submitted (POST) with element checkboxes, called items[].

When I do a

7条回答
  •  不思量自难忘°
    2021-01-17 23:47

    For ColdFusion 10+, if you use the sameformfieldsasarray setting in your Application.cfc like this:

    component {
        this.name = "testingzone2c";
        this.sameformfieldsasarray=true;
    }
    

    You will get an actual array of form fields with the same name.

    ColdFusion 10 Missing Feature - Form Fields and Arrays

提交回复
热议问题