note 51308 added to language.variables.external
| From: | owin97 at hotmail dot com | Date: | Sat, 26 Mar 2005 21:37:28 +0000 |
| Subject: | note 51308 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87032@lists.php.net to get a copy of this message | ||
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!
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51308
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51308&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51308&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51308&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51308&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51308&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51308&report=yes
Search -- http://master.php.net/manage/user-notes.php