in reply to Reinventing wheels: query string parsing.
If you want your arguments to read foo=baz why do you have your arguments reading o=foo&d=baz. Change your inputs to match your requirements.
Arguments are by nature unordered, so there are no guarantees about their order, unless you hard-code the URL.
But if you hard-code the URL, why not just use foo=baz?
Help! How do I get out of this infinite loop?
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|