Posted by Pro N00b on 05/11/05 08:56
pat wrote:
> Hi Freinds,
> Does anyone used any code or class for buttons to limit the access of
> the button based on the user login level?
>
> I have a page which has 5 buttons and need to display / disable / hide
> buttons based on user login type and level.
>
> Any idea?
>
> Thanks in advance,
> Pat
<?php
$userlevel = 1 // example
if ($userlevel > 3) {
?>code for button<?php
}
if ($userlevel > 1) {
?>code for button<?php
}
if ($userlevel > 4) {
?>code for button<?php
}
?>
et cetera, et cetera, et cetera :-)
[Back to original message]
|