DaveGears86
Member
I have created a log-in area and everything is technically sound on the front of logging in, viewing secure pages and then logging out.
At the very top of my secure pages I have the following PHP:
This displays "You are logged in as: MrPink" with "Click here to logout" at the top center of the page (obviously very undesirable as it pushes the content/divs down the page). So, could somebody help explain to me how I can place the PHP "You are logged in as : MrPink" where ever I want on the page?
(and yep, Reservoir Dogs fan)
Thanks
At the very top of my secure pages I have the following PHP:
PHP:
<?php
session_start();
if ($_SESSION['username'])
{
echo "You are logged in as: ".$_SESSION['username'];
echo "<p>";
echo "<a href='logout.php'>Click here to logout</a>";
}
else
header ("location: index2.htm");
?>
<html>
<title>blah blah blah</title>
This displays "You are logged in as: MrPink" with "Click here to logout" at the top center of the page (obviously very undesirable as it pushes the content/divs down the page). So, could somebody help explain to me how I can place the PHP "You are logged in as : MrPink" where ever I want on the page?
(and yep, Reservoir Dogs fan)
Thanks