Grant Holmes Posted January 11, 2008 Share Posted January 11, 2008 I'm returning a page of results from my table. The end result is a multiple field table with record/rows. Each returned record is "Inactive" in that the "ACTIVE" field is set to 0 (zero) when I create the record. We want to be able to easily SELECT ALL to "Activate" or DeSELECT all to "DeActivate" by clicking a button, then Save Changes and have ALL those records updated. Someone may SELECT ALL, the uncheck some on their own too, or vice-versa; Do a DE-SELECT ALL. Anyhow, I'm assuming that this is a Javascript issue, so posted it here. However, after not getting any answers, I'm wondering if it's a PHP challenge? Quote Link to comment https://forums.phpfreaks.com/topic/85576-solved-select-all-checkboxes/ Share on other sites More sharing options...
Ken2k7 Posted January 11, 2008 Share Posted January 11, 2008 Is this a database table or a HTML table? I don't know what you're trying to do. You're not making it clear enough. Quote Link to comment https://forums.phpfreaks.com/topic/85576-solved-select-all-checkboxes/#findComment-436719 Share on other sites More sharing options...
nikefido Posted January 11, 2008 Share Posted January 11, 2008 you want a "Check All" button and an "Uncheck All" button? Quote Link to comment https://forums.phpfreaks.com/topic/85576-solved-select-all-checkboxes/#findComment-436723 Share on other sites More sharing options...
Grant Holmes Posted January 11, 2008 Author Share Posted January 11, 2008 Yes, check all/ uncheck all then a "save changes" button. I didn't post too much detail here, as I'd posted it in the javascript forum. The link is above. If you guys want the code here, let me know and I'll post it pronto. Quote Link to comment https://forums.phpfreaks.com/topic/85576-solved-select-all-checkboxes/#findComment-436726 Share on other sites More sharing options...
Ken2k7 Posted January 11, 2008 Share Posted January 11, 2008 First of all, you don't have any form to use checkboxes in that code. At least not from the quick glance I gave it. But this is JavaScript and not PHP. I will reply to the other topic. As for this one, please just close it with the topic solved button. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/85576-solved-select-all-checkboxes/#findComment-436729 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.