Adding variables to array?

From: Date: Mon, 22 May 2000 17:03:12 +0000
Subject: Adding variables to array?
Groups: php.general 
Request: Send a blank email to php-general+get-295@lists.php.net to get a copy of this message
Allright, probably its just me.... but here we go: reset ($HTTP_POST_VARS); while( $field=each($HTTP_POST_VARS) ) { if ($field[1]=="") { echo "$field[0] is empty!<p>"; $formfields[$index]=$field[0]; $index++; } }; I've tried the manpages, the forum, nothing. Could someone tell me why it doesn't store the fieldnames in the array? appreciate it. -Holger

« previous php.general (#295) next »