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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux