Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <body>
- <header>
- <nav>
- <div class="main-wrapper">
- <ul>
- <li>
- <a href="index.php">Home</a>
- </li>
- </ul>
- <div class="nav-login">
- <?php
- if(isset($_SESSION['u_id']))
- {
- echo '<form action="includes/logout.inc.php" method="POST">
- <button type="submit" name="submit">Logout</button>
- </form>';
- }
- else
- {
- echo '<form action="includes/logout.inc.php" method="POST">
- <button type="submit" name="submit">Logout</button>
- </form>
- <form action="includes/login.inc.php" method="POST">
- <input type="text" name="uid" placeholder="Username/email">
- <input type="password" name="pwd" placeholder="Password">
- <button type="submit" name="submit">Login</button>
- </form>
- <a href="signup.php">Sign up</a>';
- }
- ?>
- </div>
- </div>
- </nav>
- </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement