the HTML5 specification for application/x-www-form-urlencoded and text/plain sets out an algorithm that "Add [...] for each record in a form dataset", which leads to the same order.
As for multipart/form-data : "The order of the parts should be the same as the order of the fields in the form data set. Several records with the same name should be treated as different fields."
This would not be complete without obtaining the order of the form dataset obtained from the document: the same spec defines the algorithm for constructing the form dataset that "Loop: for each field of the element in the controls, in tree order, perform the following substeps and skip or add record.
Therefore, for user agents that are compatible with HTML5, no matter what encoding, the missing parameters are ordered by tree, with valid duplicates .
Lloeki Apr 23 '15 at 9:12 2015-04-23 09:12
source share