On 13-Aug-2001 Tamas Bucsu wrote:
> 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

 while (list ($k, $v) = each($HTTP_POST_VARS)) {
    echo "$k ==> $v <BR>\n";
 }

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to