"This is not good" correctly analyzes all browsers that I know of; if two urls appear in the url encoded string, they will be treated as an array. Try this in jQuery:
$('<form name="form1">\ <input type="hidden" name="url" value="1">\ <input type="hidden" name="url" value="2">\ </form>').serialize()
and you will get: "url=1&url=2"
A well-written query parser will return a json structure as follows:
{"url":["1", "2"]}
Is this a strictly specification? No, but not one of them creates a multi-line string, avoiding the backslash EOL, as I said above.
Jeff Lowery Nov 24 '14 at 23:47 2014-11-24 23:47
source share