I wanted to find out what's going on with how checkboxes are submitted as form data as it seems that there is a difference between server side scripts.
This question was spurned from https://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_28226128.html#a39457253
This link: http://www.w3.org/TR/html401/interact/forms.html#checkbox
Several checkboxes in a form may share the same control name. Thus, for example, checkboxes allow users to select several values for the same property. The INPUT element is used to create a checkbox control.
But it also says under the section "Successful Controls" http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2
All "on" checkboxes may be successful.
Now what does that mean??
It doesn't seem to be the case for PHP, where only the last checkbox's value with the same name is received : http://phpfiddle.org/main/code/td9-usz
But it is the case for coldfusion. (see referring link to the other question above), this involves submitting form data to coldfusion that will handle checkboxes with the same name (without [ ]) and compile them into a comma delimited string when the form is submitted.
So my question(s) are:
Is PHP doing what it should and am I missing something in my phpfiddle example?
How does .NET applications (and other server based technologies) handle the same form data and do they require the array indicators [ ]?