firblazer Posted July 22, 2008 Share Posted July 22, 2008 Hi! I have a table with a list of names from a database. Beside the list of names, I have a checkbox beside each name. By clicking on the checkbox, I can remove the names from the list. That means to say: I can dynamically change the list by clicking on the checkboxes. How can I do that? Thanks. Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/ Share on other sites More sharing options...
revraz Posted July 22, 2008 Share Posted July 22, 2008 If you want it dynamic (meaning without a submit button), you'll need to look into Javascript. Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/#findComment-596551 Share on other sites More sharing options...
firblazer Posted July 22, 2008 Author Share Posted July 22, 2008 Hi! I have tried that but I have problems passing data between PHP and Javascript. Any ideas? Thanks. Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/#findComment-596555 Share on other sites More sharing options...
waynew Posted July 22, 2008 Share Posted July 22, 2008 What problems? Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/#findComment-596611 Share on other sites More sharing options...
firblazer Posted July 22, 2008 Author Share Posted July 22, 2008 How do I pass data between PHP and Javascript? Thanks Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/#findComment-596624 Share on other sites More sharing options...
.josh Posted July 22, 2008 Share Posted July 22, 2008 look into ajax for php/js interaction. but let's backup here a minute. Are you sure you want it to automatically delete by checking a checkbox? Checkboxes are meant for flagging multiple things. Maybe you mean to click multiple ones and then click a single delete button? You can do this by making a regular form with a regular submit button, no js required at all. Link to comment https://forums.phpfreaks.com/topic/116024-how-to-dynamically-change-a-table-using-checkboxes/#findComment-596627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.