matthew perry wrote:

<input type = "checkbox" name = "box<?echo $counter;?>" value = "delete">

*********Bad solution 2 (doesn't work)***********
$counter = 1;
while (<<whatever>>)
if ($box . $counter == 'delete')   <<do whatever>>

if(${$box . $counter} == 'delete')

However, like someone else said, if you named your checkboxes as box[1], box[2], etc, then you'd have a nice $_POST['box'] array that you could loop through.

foreach($_POST['box'] as $count => $value)
{ do_whatever($count); }

---John Holmes...

Amazon Wishlist:

php|architect: The Magazine for PHP Professionals –

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to