Posted by witkey on 01/02/06 16:45
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
[Back to original message]
|