Well i'm having a problem with the compatibility of javascript and PHP multiple delete check box.. i used a javascript for the "CHECK ALL BOXES" just like yahoo mail.. so my input is something like this "<input type='checkbox' name='checkbox' value='1'><input type='checkbox' name='checkbox' value='2'>" and the check all boxes function worked but it doesnt work with my PHP code where it is something like this :
-
$checked = $_POST["checkbox"];
-
for($i=0; $i < count($checked); $i++) {
-
....// DELETE ALL CHECKED
-
}
[Please use CODE tags when posting source code. Thanks! --pbmods]
but if i change my input to something like:
- <input type='checkbox' name='checkbox[]' value='1'><input type='checkbox' name='checkbox[]' value='2'>
.. it does work on my PHP script but it wont work for my "Check all Function" javascript.. **** it.. i need help!!!