Guest User

Untitled

a guest
Jul 2nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['username']) AND isset ($_POST['password']))
  3. {
  4.  
  5. if(empty($_POST['username']) AND empty($_POST['username']))
  6. {
  7. echo "<a href= 'index.php'>Je bent wat vergeten in te vullen.<br>";
  8.  
  9. }
  10. else{
  11. $username = "Erwin";
  12. $password = "lol123";
  13.  
  14. $post_username = $_POST['username'];
  15. $post_password = $_POST['password'];
  16. //controle
  17. if ($post_username == $username AND $post_password == $password){
  18. echo "je bent succesvol ingelogd!";
  19. }
  20. else {
  21. echo "Gebruikersnaam of wachtwoord onjuist";
  22. echo "<a href = 'index.php'> Terug</a>";
  23. }
  24. }
  25. }
  26. else{
  27. header("location: index.php");
  28. }
  29. ?>
Add Comment
Please, Sign In to add comment