Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['submit'])) {
- //formen er submitted
- if ($_POST['username'] != '' && $_POST['password'] != '') {
- //Formen er udfyldt
- if ($_POST['username'] == 'admin' && $_POST['password'] == 'admin') {
- //Du er logget ind med admin
- session_start();
- $_SESSION['username'] = $_POST['username'];
- header('LOCATION: ../index.php?page=Login&?status=ok');
- }else{
- header('LOCATION: ../index.php?page=Login&?error=3');
- }
- }else{
- header('LOCATION: ../index.php?page=Login&?error2');
- }
- }else{
- header('LOCATION: ../index.php?page=Login&?error=1');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement