Re: QUERY_STRING Variables and POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"; }
	}
}
?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux