I have this code on a page for a login website. It is the page you land on if you have successfully logged in.
I keep getting this error --->
Parse error: syntax error, unexpected $end in D:\Hosting\9866233\html\newlaw\login_success.php on line 38
What am i doing wrong? All i want is for the user to land on this page if they login properly and that no one can view the page by just entering the direct url.
- Code: Select all
// User not logged in, redirect to login page
// Member only content
// Display Member information
echo "<p>User ID: " . $_SESSION["valid_id"];
echo "<p>Username: " . $_SESSION["valid_user"];
echo "<p>Logged in: " . date("m/d/Y", $_SESSION["valid_time"]);
// Display logout link
echo "<p><a href=\"loggout.php\">Click here to logout!</a></p>";