session_start(); include 'scripts.php'; db_connect(); //post variables $username = $_POST['username']; $hygea_code=$username; $password = md5($_POST['password']); $agent_code = $username; //start login scripts if (isset($_POST['Submit'])) { //see if the code the user typed matched the generated code if (strtoupper($_POST['code']) == $_SESSION['code']) { //verified the login status and continue $LoginQuery = "select * from tb_hygea_login where username = '".$username."' and password = '".$password."'"; $loginOk = false; $LoginQueryResult = mysql_query($LoginQuery); //Check username and password information $row = mysql_fetch_array($LoginQueryResult); if (!$row) { $Error = 'Sorry, you DO NOT have Permission to view this Page!!!'; } else { $_SESSION['hygea_logged'] = $_POST['username']; $_SESSION['hygea_password'] = md5($_POST['password']); //$_SESSION['hygea_login'] = "YES"; //////////////////////////////// header("location: hygea_panel.php"); } } else { $Error = 'You have entered the Wrong Security Code. Please, try again'; } } ?>
Hygea Login Access |
|
©
2006-2007 Insurvisa.com . All rights reserved Powered by Access Solutions |