session_start(); if($_SESSION['ZUID']) header("location:home.php"); // go to home is Reg UserID present //////////////////// if (isset($_REQUEST["ZUID"])) $MID = $_REQUEST["ZUID"] ; else $ZID = $_SESSION['ZUID'] ; //// get post/get member if to OVERIDE session variable - allows session to be override if (isset($_GET['clear'])) { logout() ; header("Location: index.php") ; } require_once("../!!INCL/WYNTK1.php"); // stores system variables require_once("../!!INCL/OARSfunc1.php"); // system function store /// set the return file name for POST forms $ffrom1 = $_SERVER["REQUEST_URI"] ; $ffrom2 = "index.php" ; $ffrom = $ffrom2 ; /// if button was presses then try to log in - otherwise open blank form if(isset($_POST['btn-loginX'])) { // $email = trim($_POST['txtemail']); $un = trim($_POST['txtuname']); $pw = trim($_POST['txtupass']); /// check login if( logUin($un,$pw)) header("Location: home.php") ; } ///////////////////// display form//////////////////////// ?>