May 23 Registration Review

Source: Internet
Author: User

Registration Data Display Page zhuce.php

<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >nbsp;<a href= "main.php" ><input type= "button" value= "View"/></a></div></form></body> View Code

Registration Data processing Page zhucechuli.php

<?PHP$uid=$_post["UID"];$pwd=$_post["PWD"];$name=$_post["Name"];$sex=$_post["Sex"];$birthday=$_post["Birthday"];//dealing with gender$s= 1;if($sex= = "female"){    $s= 0; }include(".. /dbda.php ");$db=NewDbda ();$sql= "INSERT into users values (' {$uid}‘,‘{$pwd}‘,‘{$name}‘,{$s},‘{$birthday} ', ', false) ';//echo $sql;if($db->query ($sql, 1)){    Header("location:zhuce.php"); }
View Code

page Display effect

Login Data Display page login.php

 Public "-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >nbsp; <a href= "main.php" ><input type= "button" value= "Go to audit"/><a></div></form></body> 
View Code

Login Data processing page loginchuli.php

<?PHPSession_Start();$uid=$_post["UID"];$pwd=$_post["PWD"];include(".. /dbda.php ");$db=NewDbda ();$sql= "SELECT count (*) from the users where Uid = ' {$uid} ' and Pwd = ' {$pwd} ' and Isok =true ';$r=$db->strquery ($sql);if($r==1){    $_session["UID"] =$uid; Header("location:main.php");}Else{    Header("location:login.php");}
View Code

Page Display effect

Audit Data Display Page main.php

<! DOCTYPE html Public"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >PHPinclude(".. /dbda.php ");$db=NewDbda ();$sql= "SELECT * from Users"; $attr=$db->query ($sql);foreach($attr  as $v){    //status of the review    $zt= ""; if($v[6])    {        $zt= "<span style= ' color:red ' > Approved &nbsp;&nbsp;<a href= ' chexiao.php?uid={$v[0]} ' > Undo </a></span> "; }    Else    {        $zt= "<a href= ' mainchuli.php?uid={$v[0]} ' > Audit </a> "; }    Echo"<tr> <td>{$v[2]}</td> <td>{$v[3]}</td> <td>{$v[4]}</td> <td>{$zt}</td> </tr>"; }?> </table></body>View Code

Audit Quantity Processing page mainchuli.php

<?PHP$uid=$_get["UID"];include(".. /dbda.php ");$db=NewDbda ();$sql= "Update users set Isok = TRUE where Uid = ' {$uid}‘";if($db->query ($sql, 1)){    Header("location:main.php"); }Else{    Echo"Audit Failed"; }
View Code

Revoke Audit Processing page chexiao.php

<?PHP$uid=$_get["UID"];include(".. /dbda.php ");$db=NewDbda ();$sql= "Update users set Isok = false where Uid = ' {$uid}‘";if($db->query ($sql, 1)){    Header("location:main.php"); }Else{    Echo"Undo Failed"; }
View Code

Page Display effect

May 23 Registration Review

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.