Implementation of PHP Student management system
Recently the school opened a PHP course, by the way to write a homework, share it ...
It's a simple thing to do 、、、
Omit part of the front-end code 、、、
The first is the check for login:
Then is the registered checksum:
Graduation operation and accession history check:
Any keyword query:
'; Var_dump ($_post[' search '); return; */foreach ($_session[' student ') as $k 1 = $value) {# code...if ($search ==$_ session[' student ' [$k 1][' s_id ']| | $search ==$_session[' student ' [$k 1][' Idcard ']| | $search ==$_session[' student ' [$k 1][' Name ']| | $search ==$_session[' student ' [$k 1][' Sex ']| | $search ==$_session[' student ' [$k 1][' Major ']) {$i = 1; $stu = $_session[' student '] [$k 1][' s_id '];$_session[' search '][$ Stu] = $stu;}} if (Isset ($i)) header ("Location:stu_query.php?user=admin&action=search"); Else header ("location:stu_Query.php? User=admin&action=q_error ");
Traverse Student Information:
"; foreach ($k 1 as $k 2=> $k 3) {echo"
"If ($k 2== ' s_id ') {echo" study number: ";} else if ($k 2== ' Idcard ') {echo "ID number:";} else if ($k 2== ' sex ') {echo "Gender:";} else if ($k 2== ' name ') {echo "Name:";} else if ($k 2 = = ' Major ') {echo "Professional:";}; echo " | "; Echo"
"If ($k 2== ' s_id ') $s _id= $k 3; echo "$k 3"; echo " | ";}}}}? >
Update the page and verify the data:
|
Once you are sure you cannot change |
Has changed";}? >
Some front-end designs:
<title>Main</title>
|
Login cookie is valid for 1200 seconds |
|
blog:http://blog.csdn.net/p64129071 0 |
email:pengjunweiright@163.com |
http://www.bkjia.com/PHPjc/917112.html www.bkjia.com true http://www.bkjia.com/PHPjc/917112.html techarticle PHP Student Management System Implementation recently, the school opened a PHP course, by the way wrote a homework, share it ... are very simple things, novice need 、、、 omit some of the front-end code ...