Array scanning stops by itself before reaching the end.

From: Date: Mon, 11 Feb 2002 02:06:56 +0000
Subject: Array scanning stops by itself before reaching the end.
Groups: php.general 
Request: Send a blank email to php-general+get-84206@lists.php.net to get a copy of this message
I got this stupid problem: I create an HTML list of inputs: <input name="Answer[]" type='checkbox'> that stretches to some 25 elements. When I try to read the values ("on" or "off") with the code below, PHP won't read past the 8th. element and says it's found an undefined variable (which is $x). No matter what I do, it's always the 8th. element. for($x = 1; $x <= ($TotalAnswers); $x++) { echo($Answer[$x]); } Anyone has a prompt solution? I'm getting desperate. Thanks, Pepinho.

« previous php.general (#84206) next »