In-depth understanding of using PHP for page registration review

Source: Internet
Author: User
This article explains in detail that this user record is available after user registration. you set a "review status" field for the user table, and the default value is "not reviewed ", then you write a few review codes to form a function. if the review passes, you can change the review status to "reviewed. When you want to perform various operations, you should first judge the audit status field. if not, it will be blocked and provide some prompt information; otherwise, it will be released. Registration page

Registration page

 

Registration Processing page

 Query ($ SQL, 0) {header ("location: zhuceyemiandenglu. php");} else {echo "registration failed! ";}

Logon page

Page logon

  

Registration logon process page

 Query ($ SQL); if ($ arr [0] [1] ==$ pwd &&! Empty ($ pwd) {if ($ arr [0] [5]) {header ("location: zcmain. php ");} else {echo" this user has not passed review! ";}} Else {echo" logon failed! ";}

Registration page

User review
     
   Query ($ SQL); foreach ($ arr as $ v) {$ str = $ v [5]? "Passed": "passed"; echo"
   ";}?>
  
User name Name Gender Birthday Operation
{$ V [0]} {$ V [2]} {$ V [3]} {$ V [4]} {$ Str}

 

Approved Code

 Query ($ SQL, 0) {header ("location: zcmain. php");} else {echo "failed to pass! ";}

The above is an in-depth understanding of the details of page registration review using PHP. For more information, see other related articles in the first PHP community!

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.