I have a form with like 10 users or whatnot and each user has permissions for about 8 or so 'guestbooks'. There are 3 types of the permissions - 'r', 'w', and 'n'. Right now it goes you click on the link and it reloads the page and changes it to the next one, like this:
permission for this guestbook for this user is set to n. When you click the 'n' the page reloads and updates the database and now that user has permisson of 'r' set for that guestbook.
This is a hassel because you have to click it, then find where you where and click it again to change from 'n' to 'w'.
What I want to do:
Just use javascript so you click on the link but the page does not reload it just automatically changes it to the next one like it does now and then you hit submit and it updates all of the users for all of the guestbooks.
This will involve changing a hidden input that will look like this
Code: Select all
<input type="hidden" name="<?= $username ?>[<?= $guestbook ?>]" value="r">The final question:
How do I go about doing this?