How to Use PHP for page registration review and php for page review
This user record is available after the user is registered. You have set a "review status" field for the user table. 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
<Body>
Registration processing page
<? Php $ uid = $ _ POST ["uid"]; $ pwd = $ _ POST ["pwd"]; $ name = $ _ POST ["name"]; $ sex = $ _ POST ["sex"]; $ birthday = $ _ POST ["birthday"]; include ("LZY. class. php "); $ db = new LZY (); $ SQL =" insert into zhuce VALUES ('{$ uid}', '{$ pwd }', '{$ name}', '{$ sex}', '{$ birthday}', 0) "; if ($ db-> query ($ SQL, 0 )) {header ("location: zhuceyemiandenglu. php ");} else {echo" registration failed! ";}
Logon page
<Body>
Registration logon process page
<? Php $ uid = $ _ POST ["uid"]; $ pwd = $ _ POST ["pwd"]; include ("LZY. class. php "); $ db = new LZY (); $ SQL =" select * from zhuce where uid = '{$ uid }'"; $ arr = $ db-> 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
<Body>
Approved code
<? Php $ uid = $ _ GET ["uid"]; include ("LZY. class. php "); $ db = new LZY (); $ SQL =" update zhuce set isok = 1 where uid = '{$ uid }'"; if ($ db-> Query ($ SQL, 0) {header ("location: zcmain. php ");} failed to pass else {echo! ";}
The above is all the content of this article. I hope this article will help you in your study or work. I also hope to provide more support to the customer's home!