I have an intranet site that houses several applications. The idea is that person may have permissions to one or more apps.
To authenticate for this I am thinking that what I would like to do is to provide the admin with a listbox populated current projects (entered into a mysql db). The listbox would allow multiple selections.
The idea (and trouble) is that:
1. I can't seem to find how a listbox will pass multiple values. I want to get the data into a comma separated list. This would allow me to use explode and implode to work with the value in a single db field to find permissions. The idea would then be using a check on the pages with the in_array function to see if this project is one of the ones this login has permissions to. Then a array of permissions would be all I would need.
2. On the admin side, how to have the listbox select the permissions someone alreeady has to update with. In other words, check the ones a person already has permission to so I can then add others.
Any ideas on working with a listbox in this way?




)

Bookmarks