Tag:html php mysql database
<?php include_once '. /mysql.class.php '; Include_once '. /confing.php '; Include_once ' adminService.class.php '; The user logs in to the session, has been detected//session_start (); if (!isset ($_post[' name ')) | |!isset ($_post[' password ']) {echo "Junior! Please first <a href= ' index.html ' > Login </a>! "; Exit (); } else {$name = $_post[' name ']; $password = $_post[' password '); $adminservice 1 = new Adminservice (); if ($adminservice 1->checkstunum ($name, $password) > 0) {session_start (); $url = "adminmanage.php"; $_session[' admin_name '] = $name; echo $_session[' Admin_name ']; echo "<script type= ' Text/javascript ' >". " Location.href= ' ". $url." "." </script> "; } else {//Login failed header ("refresh:5;url=admin_login.php"); Print (' Loading, please wait ...<br> five seconds after automatically jump to the management interface ~ ~ ~ '); }}?>
Login success:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Preview:Failed:
"PHP" 6, Student management system-Log in