Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_POST['kirim'])){
- $username = $_POST['username'];
- $password = $_POST['password'];
- //user = admin pass = 123
- if(($username == "admin") && ($password == "123")){
- //login sukses
- $_SESSION['login'] = "admin";
- header("location:../../index.php?pesan=sukses");
- }else{
- //login gagal
- header("location:../../index.php?menu=login&level=admin&pesan=error");
- }
- }else{
- header("location:../../index.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement