KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
There is a standard or a good practice on choosing the name attribute value in complex HTML form input elements? For example: <input type="text" name="post[comments][0][author][name]" /> But what about multiple values? Should I use <input type="file" multiple name="post[attachments]" /> or <input type="file" multiple name="post[attachments][]" /> ? PHP supports only the latter, but W3C uses the former in their examples. Since I'm parsing raw multipart/form-data entities, I don't rely on a specific language; I'm looking for standards, best practices or suggestions.
Tags (comma-separated)
Save Edits
Cancel