rockinaway Posted October 4, 2008 Share Posted October 4, 2008 Right, this is more complicated than the title suggests. I am doing a permissions page, and have say 3 groups present. Each group then has a list of permissions, e.g. can view, can upload. These all have a checkbox so that the value can be changed. Now the problem I have is that these are all going to be updated from ONE submit button. However, I can't filter the values so that the permissions for one group only are updated in the database for that group, and not for others. Example: Group Can View Can Upload G 1 0 M 1 1 (the values denote checked or not). That is a simple example of the values that will be shown. They are all handled in the same form. Now I want these to be updated in the database. So, only the 1 and 0 values are updated for the G group and not the M group. Same so that 1 and 1 is only updated for 1. (sorry if I am not clear, hard to explain) How can I do this? I have tried a variety of methods. Do I need separate forms? Or arrays for the form fields with the group id in? Link to comment https://forums.phpfreaks.com/topic/127012-checkboxes/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.