Re: [PHP] Help with array creation

2001-03-20 Thread Yasuo Ohgaki
Just use $HTTP_POST_VARS and $HTTP_GET_VARS. (Recent PHP4 is always compiled with "enable-track-vars", if you are using older PHP set track-vars to true in php.ini) Read http://www.php.net/manual/en/language.variables.php and http://www.php.net/manual/en/language.variables.external.php Regards,

[PHP] Help with array creation

2001-03-19 Thread Chris Carbaugh
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