Newbie problem with POST vars

From: Date: Thu, 13 Jun 2002 11:33:13 +0000
Subject: Newbie problem with POST vars
Groups: php.general 
Request: Send a blank email to php-general+get-101927@lists.php.net to get a copy of this message
Sorry if this is a bit simple: I'm trying to loop through $_POST vars in a function, which I understand to be an autoglobal associative array. Here's the code I'm using: foreach($_POST as $item => $value){ echo "$item, $value<br>"; } However, I only get the first element of the array echoed, even though I know there to be other elements (I can access them as $_POST[element]) Any ideas? Cheers, Mick

« previous php.general (#101927) next »