Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include('header.php');?>
- <html>
- <link rel="stylesheet" href="login.css">
- <br>
- <form class="" action="main.php" method="post">
- <input type="hidden" name="login" value="true"> <br>
- <input type="text" name="username"> <br>
- <input type="password" name="password"> <br>
- <input type="submit" name="submit" value="Login">
- </form>
- <html/>
- <?php
- session_start();
- if (isset($_POST['login'])) {
- include('../connect.php');
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($_POST["username"] == 'username' && $_POST["password"] == 'password') {
- }
- }
- ?>
- <!--
- 1. Enter in username and password
- 2. Take values entered in and check for them in the database.
- 3. Throw an error to the client if the username and password entered in are not in the database.
- 4. If values entered in are correct, take the user to main.php.
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement