note 51308 rejected from language.variables.external by nlopess

From: Date: Sat, 26 Mar 2005 22:33:21 +0000
Subject: note 51308 rejected from language.variables.external by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-87034@lists.php.net to get a copy of this message
Note Submitter: owin97 at hotmail dot com ---- I am having problems with using 'select all' Javascript function on a list of checkboxes generated by a PHP while loop. <input type="checkbox" name="comment[]" value="<?=$com_id?>" /> The above will output a list of comments stored by $com_id in my database. All is well except for putting in 'select all checkbox' function. I have tried several 'select all' checkbox functions I found on the net but it would not work - I'm guessing it is because of the loop. Those would only work on list of checkboxes with definite values. Some would check just the first box, some wouldn't check a thing! Anyone have any solutions for me? I'm stuck!

« previous php.notes (#87034) next »