button or link restricted

in every page i have a restricted button of links i have 2 kind of users:

  1. Admin
  2. Encoder

in the top of my page i have this code:

<? session_start(); session_register("rights", "theusername", "inin"); if (!$inin) { header("Location: login.php"); exit; } ?>

now rights is where the admin or encoder wer placed.
my problem is how to disable/enable the button wer is restricted. 8) 8)

why don’t u just put it insise an if?

i guess i don’t understand where ur problem realy is. could u please give a more exact description.

i got it Q1712, i use if :lol:

Sponsor our Newsletter | Privacy Policy | Terms of Service