Reply to Re: [PHP] QUERY_STRING Variables and POST

Your name:

Reply:


Posted by Michael Hulse on 12/09/05 01:39

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация