Guest User

Untitled

a guest
Sep 9th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <form action="process.php" method="POST>">
  2.  
  3. `Gebruikersnaam: <input type="text" name="username"/>`
  4.  
  5. `Wachtwoord: <input type="password" name="pass"/>`
  6.  
  7. `<input type="submit" value="Login"/>`
  8.  
  9. </form>
  10.  
  11.  
  12. process.php:
  13.  
  14. <?php
  15.  
  16. $username = $_POST['username'];
  17.  
  18. $password = $_POST['pass'];
  19.  
  20.  
  21. if ($username =='test' AND $password=='admin') {
  22.  
  23. echo "logged in succes!";
  24.  
  25. }
  26.  
  27. else {
  28.  
  29. echo "verkeerd wachtwoord of gebruikersnaam";
  30.  
  31. }
  32.  
  33. ?>
Add Comment
Please, Sign In to add comment