Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3.  
  4. <html>
  5. <body>
  6. <?php
  7. session_start();
  8.  
  9. //instellen gebruikersnaam en wachtwoord
  10. $usernamecheck = 'admin';
  11. $passwordcheck = 'admin';
  12.  
  13. //controle of er op submit is geklikt
  14. if(isset($_POST['inloggen'])){
  15.  
  16. $username = trim($_POST['username']);
  17. $upass = trim($_POST['password']);
  18.  
  19. if($username == $usernamecheck && $upass == $passwordcheck){
  20. header("Location: ingelogd.php");
  21.  
  22. $_SESSION['logged_in'] = true;
  23. $_SESSION['gebruiker'] = $user;
  24.  
  25.  
  26.  
  27. }
  28.  
  29. else{
  30. echo "poep";
  31. }
  32. }
  33.  
  34. ?>
  35. </html>
  36. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement