Menu
I have a script that is suppose to show the login box when someone isn’t logged in but shows the user’s username when succesfully logged in. But I get a Parse error: parse error, expecting `T_STRING’ or
[code=php]<?php
session_start();
if (!$_SESSION[‘username’]) {
echo “You are logged in as ($_SESSION[‘username’])”;
} else {
include(“form.html”);
}
?>