Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['username']) AND isset ($_POST['password']))
- {
- if(empty($_POST['username']) AND empty($_POST['username']))
- {
- echo "<a href= 'index.php'>Je bent wat vergeten in te vullen.<br>";
- }
- else{
- $username = "Erwin";
- $password = "lol123";
- $post_username = $_POST['username'];
- $post_password = $_POST['password'];
- //controle
- if ($post_username == $username AND $post_password == $password){
- echo "je bent succesvol ingelogd!";
- }
- else {
- echo "Gebruikersnaam of wachtwoord onjuist";
- echo "<a href = 'index.php'> Terug</a>";
- }
- }
- }
- else{
- header("location: index.php");
- }
- ?>
Add Comment
Please, Sign In to add comment