Why name of checkbox is always an array? Can this be changed?
-
I’m adding some checkboxes using this plugin and I have noticed that the name of the field is always an array. For example:
[checkbox new_briefing_presentation "説明会プレゼン"]
Will result in the following HTML:
<input type="checkbox" name="new_briefing_presentation[]" value="説明会プレゼン">
Why is the “name” attribute an array, “new_briefing_presentation[]” and not just “new_briefing_presentation”? This breaks my backend code, it seems like a really bad idea not to allow the user to send only a single value. Please tell me there is an option to send only one value instead of an array. Please, pretty please.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Why name of checkbox is always an array? Can this be changed?’ is closed to new replies.