Advertisement
irfanamir

login.php

Mar 20th, 2020
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_POST["login"])) {
  4.   if ($_POST["username"]=="irfan" && $_POST["password"] =="irfan") {
  5.     $username = $_POST["username"];
  6.     setcookie("username", $username);
  7.     header("location: home.php");
  8.   }else {
  9.     header("location: index.php");
  10.   }
  11. } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement