nominator Posted May 26, 2006 Share Posted May 26, 2006 Hi, i alot a db table called "staff". it has all the staff details, eg username, pass, email etc etc.Under my admin page, i wanna allow admins to delete staff. i wanan output all staff username and a checkbox at the side. If the checkbox is ticked, the staff is deleted from database. If example 5 staffs are ticked, all 5 staff will be remove from dbHow do i prin all records with a checkbox at the side and delete when tickedthanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/10478-phpcheckbox/ Share on other sites More sharing options...
.josh Posted May 26, 2006 Share Posted May 26, 2006 there are several very recent threads about this very topic. please try searching before posting. k thx. Quote Link to comment https://forums.phpfreaks.com/topic/10478-phpcheckbox/#findComment-39097 Share on other sites More sharing options...
poirot Posted May 26, 2006 Share Posted May 26, 2006 Short Answer:[code]USER 1 <input type="checkbox" name="delete[1]">USER 2 <input type="checkbox" name="delete[2]">[/code]You'll get something like:[code]Array( [delete] => Array ( [1] => on ))[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10478-phpcheckbox/#findComment-39105 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.