While straighten will returns parsed GET query string parameters there are times (i.e. in HTML <form> processing) when the body of the request contains a URL encoded query string as well.

parse_query(query)

Arguments

query

query string to decode

Details

This function will take any query string and return a named list of the paremters. Both the names and values will be URL decoded.

References

Query Strings

Examples

parse_query("a=1&b=test")