Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if (!$_SESSION['logovan'] == 1) {
- header("Location: index.php");
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Logovan</title>
- </head>
- <body>
- <p><?php
- if (!empty($_SESSION['poruka'])) {
- echo $_SESSION['poruka'];
- }
- ?></p>
- <form action = "php/prijava.php">
- <button>Prijava na posao</button>
- </form>
- <form action = "php/odjava.php">
- <button>Odjava sa posla</button>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment