Working with Form Arrays in ColdFusion?

后端 未结 7 2068
旧时难觅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:27

    See also the second answer here. It describes how to retrieve values from a field with multiple instances on a form as an array. I have to say though, I've been working in CFML for many years, and I've yet to do this myself, or see it done in any app I've worked on. I think that's just because avoiding commas is very much simpler, but if you can't or don't want to work around it that way, it is possible.

提交回复
热议问题