Hi All..
I want to display who has logged in ...Like Logged in as "_______"..
or like the one on the top left corner of your screen.... Hello, xxxxx
For that i have included the following code in my loginpro page..
[PHP]
session_start() ;
include("sessio n.inc.php");
if (login($_POST['txtname'],$_POST['txtpass']) == TRUE)
{
session_registe r("username") ;
$_SESSION['username'] = $_POST['txtname'];
}
[/PHP]
In the other pages i have written this code
[PHP]
<?php
include("sessio n.inc.php");
Logged in as :<?php echo $_SESSION['username']; ?>
?>
[/PHP]
I am not able to display The login Name ..
How can i solve it???
I want to display who has logged in ...Like Logged in as "_______"..
or like the one on the top left corner of your screen.... Hello, xxxxx
For that i have included the following code in my loginpro page..
[PHP]
session_start() ;
include("sessio n.inc.php");
if (login($_POST['txtname'],$_POST['txtpass']) == TRUE)
{
session_registe r("username") ;
$_SESSION['username'] = $_POST['txtname'];
}
[/PHP]
In the other pages i have written this code
[PHP]
<?php
include("sessio n.inc.php");
Logged in as :<?php echo $_SESSION['username']; ?>
?>
[/PHP]
I am not able to display The login Name ..
How can i solve it???
Comment