Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title> Anmeldung - GS4Y</title>
- </head>
- <body>
- <?php
- session_name("synolgie_LOGIN");
- session_start();
- if(isset($_POST['username'])){
- if($_POST['username'] == $login['user'] && $_POST['password'] == $login['password']){
- $_SESSION['access'] == 'yes';
- }else{
- echo 'Benutzername und/oder Kennwort sind/ist Falsch.';
- }
- }
- if(isset($_SESSION['access']) && $_SESSION['access'] != ''){
- }else{
- echo "FEHLER!";
- }
- session_destroy();
- ?>
- <form methode="post" action="test.php">
- Benutzername:<input type="text" name="username">
- Kennwort:<input type="password" name="password">
- <input type="submit" value="Anmelden">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement