Is there a standard or good practice for selecting the value of the name attribute in complex HTML input elements? For example:
<input type="text" name="post[comments][0][author][name]" />
But what about a few meanings? Should i use
<input type="file" multiple name="post[attachments]" />
or
<input type="file" multiple name="post[attachments][]" />
?
PHP only supports the latter, but W3C uses the former in its examples. Since I am parsing raw multipart/form-data entities, I do not rely on a specific language; I am looking for standards, best practices or suggestions.
Giovanni lovato
source share