Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title> Anmeldung - GS4Y</title>
  6. </head>
  7. <body>
  8. <?php
  9. session_name("synolgie_LOGIN");
  10. session_start();
  11.  
  12. if(isset($_POST['username'])){
  13. if($_POST['username'] == $login['user'] && $_POST['password'] == $login['password']){
  14. $_SESSION['access'] == 'yes';
  15. }else{
  16. echo 'Benutzername und/oder Kennwort sind/ist Falsch.';
  17. }
  18. }
  19. if(isset($_SESSION['access']) && $_SESSION['access'] != ''){
  20.  
  21. }else{
  22. echo "FEHLER!";
  23. }
  24. session_destroy();
  25. ?>
  26.  
  27. <form methode="post" action="test.php">
  28. Benutzername:<input type="text" name="username">
  29. Kennwort:<input type="password" name="password">
  30. <input type="submit" value="Anmelden">
  31.  
  32.  
  33. </form>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement