Hello,

I'm trying to take the query string of a url and turn it into an
associative array.

Let's say I have a URL like 

myHost.com/somepage.php?val1=one&val2=two

I can get the query with HTTP_SERVER_VARS["QUERY_STRING"], but how do I
generate an array equivilent to

array('val1'=>'one', 'val2'=>'two')

Also, this example uses a GET method.  First, can I do this?  Also, can
I do this with a POST method?

Thanks,
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to