What is the expected order of an array submitted in an HTML form?
问题 I'm wondering if there is any sort of guarantee on the order of POST variables I will see on the server side. My use case is I have a form that a user will fill out to enter a list of names and emails. I'm using a table rows, each of which has two inputs: <table> <tr> <td><input type='text' name='name[]' /></td> <td><input type='text' name='email[]' /></td> </tr> <tr> <td><input type='text' name='name[]' /></td> <td><input type='text' name='email[]' /></td> </tr> </table> The row might be