Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <?php
- session_start();
- //instellen gebruikersnaam en wachtwoord
- $usernamecheck = 'admin';
- $passwordcheck = 'admin';
- //controle of er op submit is geklikt
- if(isset($_POST['inloggen'])){
- $username = trim($_POST['username']);
- $upass = trim($_POST['password']);
- if($username == $usernamecheck && $upass == $passwordcheck){
- header("Location: ingelogd.php");
- $_SESSION['logged_in'] = true;
- $_SESSION['gebruiker'] = $user;
- }
- else{
- echo "poep";
- }
- }
- ?>
- </html>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement