Re: QUERY_STRING Variables and POST
| From: | Michael Hulse | Date: | Thu, 08 Dec 2005 23:39:44 +0000 |
| Subject: | Re: QUERY_STRING Variables and POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227163@lists.php.net to get a copy of this message | ||
On Dec 8, 2005, at 2:46 PM, Michael B Allen wrote:
I'm using the POST method but I would also like to access QUERY_STRING parameters. Is there a convienient global array for these? If not, what is the definitive method for accessing them?Not sure if this script will help, but you can point your form to it and get back some useful info: <?php if (count($_REQUEST) > 0) { echo 'Post '.count($_REQUEST)."Variables<br />\n"; while (list ($key, $val) = each ($_REQUEST)) { $$key = $val; if(is_array($$key)) { for($a=0;$a<count($$key);$a++) echo $key."[".$a."] = \"".$val[$a]."\"<br />\n"; } else { print "$key = \"$val\"<br />\n"; } } } ?>