- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Carlos Fernando Scheidecker Antunes'" <[EMAIL PROTECTED]>;
"PHP-GENERAL" <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 1:00 AM
Subject: RE: [PHP] How to loop the HTTP
foreach($HTTP_POST_VARS as $key => $val) {
echo "$key: $val\n";
}
On Mon, 21 May 2001, Carlos Fernando Scheidecker Antunes wrote:
> Hello all,
>
> I'm trying to loop the $HTTP_POST_VARS variable like an array like this :
>
> $index = count($HTTP_POST_VARS);
>
> for($i=0; i < $index; i++) {
>
no, you are trying to get an $HTTP_POST_VAR[integer]... it is not there. The
keys are your variable names, therefore this is correct:
foreach($HTTP_POST_VARS as $key=>$val) {
$itens[] = $val;
}
will fit everything form ..POST_VARS into $itens array. BUT you'll loose all
the key names, kn
3 matches
Mail list logo