RE: Re: Checkboxes in a table

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

 



> -----Original Message-----
> From: Jasper Howard
> Sent: 21/08/04 00:49
> 
> just set the checked value of the check boxes to something like,
> "true", and when you are going through the check boxes in the second
> script do something like this:

Urrr -- you script will only ever see checkboxes which are checked -- unchecked ones won't be trnsmitted.  So just foreach() over the received array, and the indexes you see are for the checked boxes:

  foreach ($_POST['checkbox'] as $key=>$irrelevant):
    // checkbox[$key] was checked
  endif;

Cheers!

Mike

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux