Untitled
unknown
plain_text
a month ago
578 B
3
Indexable
<?php session_start(); if (!isset($_SESSION['name'])) { header("Location: ../../index.php"); exit; } ?> <!DOCTYPE html> <html lang="en"> <head> <title>Dashboard</title> </head> <body> <h2>Welcome, <?php echo $_SESSION['name']; ?>!</h2> <a href="../../app/controllers/StudentController.php?action=logout" id="logout">Logout</a> <ul> <?php foreach ($students as $student): ?> <li><?php echo $student['first_name'] . " " . $student['last_name'] . " - " . $student['email']; ?></li> <?php endforeach; ?> </ul> </body> </html>
Editor is loading...
Leave a Comment