Reply to Re: Button Permission

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация