Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php include('header.php');?>
  2.  
  3. <html>
  4. <link rel="stylesheet" href="login.css">
  5.  
  6. <br>
  7. <form class="" action="main.php" method="post">
  8. <input type="hidden" name="login" value="true"> <br>
  9. <input type="text" name="username"> <br>
  10. <input type="password" name="password"> <br>
  11. <input type="submit" name="submit" value="Login">
  12. </form>
  13. <html/>
  14.  
  15. <?php
  16. session_start();
  17.  
  18. if (isset($_POST['login'])) {
  19. include('../connect.php');
  20.  
  21. $username = $_POST['username'];
  22. $password = $_POST['password'];
  23.  
  24.  
  25. if ($_POST["username"] == 'username' && $_POST["password"] == 'password') {
  26.  
  27. }
  28. }
  29. ?>
  30.  
  31. <!--
  32. 1. Enter in username and password
  33. 2. Take values entered in and check for them in the database.
  34. 3. Throw an error to the client if the username and password entered in are not in the database.
  35. 4. If values entered in are correct, take the user to main.php.
  36.  
  37.  
  38. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement