home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 September / INTERNET107.ISO / pc / projects / phppass / checklogin.php next >
Encoding:
PHP Script  |  2003-06-06  |  184 b   |  10 lines

  1. <?php
  2. if ($username == "abc" && $password == "123") {
  3.     setcookie("LoggedIn", "True");
  4.     header("Location: index.php");
  5.     exit;
  6. }else{
  7.     header("Location: error.php");
  8.     exit;
  9. }
  10. ?>