Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST["login"])) {
- if ($_POST["username"]=="irfan" && $_POST["password"] =="irfan") {
- $username = $_POST["username"];
- setcookie("username", $username);
- header("location: home.php");
- }else {
- header("location: index.php");
- }
- } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement