Thanks so much for the help guys,
I've added the ; and
<?php
session_start();
$_SESSION['userid'];
?>
to the top of the page, so the code now looks like:
<?php if(!isset($_SESSION['userid']))
{
echo "<a href='../register.php'>My Account | </a>";
echo "<a href='../logout.php?Logout=true'>Logout</a>";
}
else
{
echo "<a href='../login.php'>Log In | </a>";
echo "<a href='../register.php'>Sign Up</a>";
}
?>
But for some reason the 'MyAccount, Logout' version of the code is always visible, whether a user is logged in or not.
can anyone see a reason for this?
I've been trawling the net and php books looking for answers but im coming up blank.
Thanks again!!!