// Use session variable on this page. This function must put on the top of page. session_start(); ////// Logout Section. Delete all session variable. session_destroy(); $message=""; ////// Login Section. $Login=$_POST['Login']; if($Login){ // If clicked on Login button. $username=$_POST['username']; $md5_password=md5($_POST['password']); // Encrypt password with md5() function. // Check matching of username and password. //d4eabe4e17ca912f7764762aee98aae3 if($username=='thearc' && $md5_password =='d4eabe4e17ca912f7764762aee98aae3'){ session_register("username"); // Craete session username. header("location:employment.php"); // Re-direct exit; }else{ // If not match. $message="--- Incorrect Username or Password ---"; } } // End Login authorize check. ?>