RE: [PHP] How to get the query string?

From: Date: Mon, 13 Aug 2001 14:08:00 +0000
Subject: RE: [PHP] How to get the query string?
Groups: php.general 
Request: Send a blank email to php-general+get-62424@lists.php.net to get a copy of this message
foreach ($HTTP_POST_VARS as $key=>$value) { echo "$key = $value"; } -Stewart -----Original Message----- From: Tamas Bucsu [mailto:ta.bucsu@orion-infotech.com] Sent: 13 August 2001 14:07 To: php-general@lists.php.net Subject: [PHP] How to get the query string? hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for ($a=1;$a<=sizeof($HTTP_POST_VARS);$a++){ echo "$a. ".$HTTP_POST_VARS[$a]."<br>"; } Please help Tamas Bucsu

« previous php.general (#62424) next »