Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="process.php" method="POST>">
- `Gebruikersnaam: <input type="text" name="username"/>`
- `Wachtwoord: <input type="password" name="pass"/>`
- `<input type="submit" value="Login"/>`
- </form>
- process.php:
- <?php
- $username = $_POST['username'];
- $password = $_POST['pass'];
- if ($username =='test' AND $password=='admin') {
- echo "logged in succes!";
- }
- else {
- echo "verkeerd wachtwoord of gebruikersnaam";
- }
- ?>
Add Comment
Please, Sign In to add comment