Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>login system</title>
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <body>
- <header id="header" class="">
- <nav>
- <div class="main-wrapper">
- <ul>
- <li><a href="index.php" title="">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/login.inc.php" method="POST">
- <input type="text" name="uid" placeholder="Username/e-mail">
- <input type="password" name="pwd" placeholder="password">
- <button type="submit" name="submit">Login</button>
- </form>
- <button type="submit name=""> <a href="signup.php">Sign up</a> '
- ;
- }
- ?>
- </div>
- </div>
- </nav>
- </header><!-- /header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement