RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

From: Date: Tue, 18 Apr 2006 18:06:28 +0000
Subject: RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working
Groups: php.general 
Request: Send a blank email to php-general+get-234201@lists.php.net to get a copy of this message
[snip] foreach ($checkbox as $value) { echo "Value: $value<br />\n"; } however the value is no longer being echoed to the page. What am I missing here? This is the code that is being submitted, $num being an incremented value: <input name="checkbox[<?php echo $num; ?>]" type="checkbox" id="checkbox[<?php echo $num; ?>]" value="<?php echo $row_rsADS['customers_id']; ?>" /> [/snip] Is the checkbox 'checked'? If not it returns no value.

« previous php.general (#234201) next »