Is it legal to have an HTML form with more than one \"hidden\" control element with the same name? I expect to get the values of all of these elements at the server. If it i
HTML5
The non-normative section 4.10.1.3 Configuring a form to communicate with a server explicitly says that it is valid:
Multiple controls can have the same name; for example, here we give all the checkboxes the same name, and the server distinguishes which checkbox was checked by seeing which values are submitted with that name — like the radio buttons, they are also given unique values with the value attribute.
The normative version of this is simply that it is not forbidden anywhere, and the form submission algorithm says exactly what request should be generated:
application/x-www-form-urlencoded loop over the "form data set" and spit out multiple key=val https://www.w3.org/TR/html5/forms.html#url-encoded-form-data