I have this login page, but I want either the logged in person to go directly to the page, or to allow a link to have the user click to go to the page.
How do I get a link to show up here that will allow the user to click on it to get to the website? Just after it says "Logout", I want it to say on a new line "You are now allowed to go to: www.blah.com" But I want www.blah.com to be a link directly to the blah.com site. Currently it just displays plain text. Keep in mind that blah.com is not the real website..just an example.
Start of code (snippet)--------------------------
}
/**
Determines whether or not to display the login
form or to show the user that he is logged in
based on if the session variables are set.
/
function displayLogin(){
global $logged_in;
if($logged_in){
echo "<h1>Logged In!</h1>";
echo "Welcome <b>$_SESSION[username]</b>, you are logged in. <a href=\"logout.php\">Logout</a>";
echo "<br>You are now allowed to go to: www.blah.com";
}
End of code (snippet)--------------------