Posted by Curtis on 01/02/06 23:24
witkey <phponline@msn.com> wrote in message
news:1136213143.451619.143970@o13g2000cwo.googlegroups.com..
..
> You can use session variables and you can look more info
on php.net
>
> http://us2.php.net/session
>
> when your customer login your panel and you create a
session like
> $_SESSION['username']
>
> after
> <?php
> if($_SESSION['username'] != "" ) {
> Echo "<li><a href="user/login" title="">Log In</a></li>";
> } else {
> Echo "<li><a href="logout" title="">Log Out</a></li>";
> }
> ?>
>
>
> Onur YERLIKAYA
The question went to style and not to the particulars of
this code, which I quoted from a Drupal coding snippet.
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.
>
[Back to original message]
|