You need to be a bit more clear about what you want, post some code up or something.
If you are wondering how to make a checkbox checked:
if you want it unchecked just dont write the 'checked' part.
thats not wat i men.. i men that if you wil check 2 check box those 2 will be deleted.. how can i check how many checkbox is selected and how to delete it using php
this is what i men for exmple i have 5 checkboxes:
i check philip and mark and press the button delete.. i tried it but only philip was deleted. how can i delete those two that i checked an if i check the check all how can i force all to have check and delete all?
please help me with this..
if you did it earlier (even not correctly), and the script is in php, i may be able to help you modify it if you provide the script here.
i dont how to code it i know only how to delete 1 entry but wen it comes to 2 or more selected in the checkbox i dont know how.. please help me code it
In most situation I am using sessions for switching but you must have different names for each checkbox. For example:
On very top of your page:
Form in html:
and delete.php :
This is one simple way for your needs. When user close browser and open it again he/she will get back all users.
You can create and delete cehckboxes as many you want. If you check all at once script will delete all. You don't need any JS. Little bit is different if you want to delete full form on the end (after all checkboxes). This is also possible, but you didn't ask.
how can i do that?? please help me... and if i want to put check all how can i code it?
thanks for helping me.. i hope you could help me with this
Can you tell me what do you exactly need. It is not the same coding one "Delete" button or one "Select all" button. Did you need both? Did you like to delete form after all, etc.
i want to have a select all checkbox when i check it all the other checkbox will be check and then when i click the delete button it will delete all from the data base. when i dont check the select all checkb0x and i will only check 2 checkbox and click the delete button only those who has a check will only be deleted...
can you help me with this?
from the database? If you want that you need to give a bit more info. And what if they are all deleted should they be showed the next time (so you can enable them again) or should they just be gone?
I understand you want 5 checkboxes, a "select all" button and a "delete selected" button. If a user deletes 2 should he see 3 or 5 checkboxes after he refreshes?
This is something more different from your first question. What type of DB you are using?
i mean like this one i wrote it but its lacking select all checkb0x if you could help me code it please help me.. this is my code
thanks please help me with this... thanks
thanks woden... now im done with this one..