urlparsequery(string)

Decode a URL query string into name/value pairs and return the result as a table. The query string is assumed to be encoded using RFC3896 format. If the string contains a '?' character, the urlparsequery function will ignore all characters prior to the first '?' character.

Example

parms = urlparsequery('foo=this+is+foo&bar=23&sparta=This+is+Sparta!')
parms = urlparsequery('http://www.ibm.com/index.html?foo=bar')