#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    12
    Rep Power
    0

    Question The switching-from-PHP-to-JavaScript blues


    Hello all

    I'm a php person stuck in JavaScript Land and I need a bit of help. I've created a dhtml/javascript menu for my client's website. This website requires a valid user/pass which is achieved through Apache's user authentication in conjunction with a mysql table.

    My question is this: Originally the entire page was php/mysql. Depending on who logged in, only certain menu items could be seen. i.e., if an admin logged in, he could see menu items 1,2, and 3. But if bob logged in, he could only see menu item 2. How can I achieve this in my javascript menu?

    thanks
    fuZZ
  2. #2
  3. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    Have the menus be outputted as the result of a function (document.write).
    Michael
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    12
    Rep Power
    0
    Got it, thanks

    fuZZ
  6. #4
  7. No Profile Picture
    Seņor Member
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2000
    Posts
    1,157
    Rep Power
    38
    No problem. Let me know if you still need help.
    Michael

IMN logo majestic logo threadwatch logo seochat tools logo