Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE HTML>
- <?php
- $username = "username";
- $password = "password";
- if (isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] == true) {
- header("location: tableManage.php");
- }
- if (isset($_POST['username']) && isset($_POST['password'])) {
- if ($_POST['username'] == $username && $_POST['password'] == $password) {
- }
- $_SESSION['loggedIn'] == true;
- header("location: tableManage.php");
- }
- ?>
- <html>
- <head>
- </head>
- <body>
- <form method="post" action="tableManage.php">
- <p>Username:</p>
- <input type="text" name="username"><br>
- <p>Password:</p>
- <input type="password" name="password"><br>
- <input type="submit" value="Login">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement