Location: PHPKode > scripts > FormMail Lite > form/login.php
<?php
require_once("cfg.php");
if($_POST["login"]){
if(($_POST['user'] != $id) || ($_POST['password'] != $pass)){
$Flg++;
}
}
if (!$Flg){
if($_POST["login"]){
session_start();
$_SESSION['sessionID'] = $_POST['user'];
$_SESSION['Pass'] = $_POST['password'];
}
}
?>
<?php
if (!$Flg){
if($_POST["login"]){
header("Location:admin.php");
exit;
}
}
?>
<?php
if ($Flg){
echo "<FONT color=#CC0000><SMALL>The id or password you entered is incorrect.</SMALL></FONT>\n";
}
?>
<center>
<form action=<?=$_SERVER[ "PHP_SELF" ]?> method=POST>
ID:<input type=text size=15 name=user><br>
Password:<input type=password size=10 name=password><br>
<input type=submit name=login value=Login>
</form>
</center>
Return current item: FormMail Lite