Location: PHPKode > projects > Employee Scheduling System > essv1-2/index.php
<?php require_once('common.php'); 
// $Id: index.php,v 1.5 2005/03/09 20:58:04 atrommer Exp $
$bGoodUser = true;
if ($_POST['isPostback']){ 
	$bGoodUser = loginUser($_POST['tbUsername'], $_POST['tbPass']);
}
if (isset($_SESSION['USERNAME'])) { redirect("mySchedule.php"); }
doHeader("Please Login", null, "self.focus(); document.frmLogin.tbUsername.focus();");

?>

<? if (!$bGoodUser){ print "<span class=errorMsg>Login Failed!  Please try again!</span>";} ?>
<form action="<?php print $_SERVER['PHP_SELF']; ?>" method="post" name="frmLogin" id="frmLogin">
  <input name="tbUsername" type="text" id="tbUsername" value="" tabindex="1">
  <input name="tbPass" type="password" id="tbPass" value="" tabindex="2">
  <input type="submit" name="Submit" value="Log In" tabindex="3">
  <input name="isPostback" type="hidden" id="isPostback" value="1">
</form>
<? doFooter(); ?>
Return current item: Employee Scheduling System