Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <body>
  2. <form action="login.php" method="post">
  3. <div class="imgcontainer">
  4. <img src="img/logo_stevens.png" alt="bedrijfslogo" class="avatar">
  5. </div>
  6.  
  7. <div class="container">
  8. <label><b>Gebruikersnaam</b></label>
  9. <input type="text" name="uname" id="uname" required>
  10.  
  11. <label><b>Wachtwoord</b></label>
  12. <input type="password" name="psw" id="psw" required>
  13.  
  14. <button type="submit">Login</button>
  15. <input type="checkbox" checked="checked"> Mij onthouden
  16. </div>
  17. </form>
  18. <?php
  19. ?>
  20. </body>
  21.  
  22. <?php
  23.  
  24. include 'db_connection.php';
  25. $username = $_POST["uname"];
  26. $password = $_POST["psw"];
  27.  
  28. $sql = mysqli_query($conn, "SELECT FROM gebruiker (username, wachtwoord)
  29. WHERE username = $username AND wachtwoord = $password");
  30.  
  31. if (mysqli_num_rows($sql) >= 1) {
  32. header('index.php');
  33. } else {
  34.  
  35. }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement