PHP: how to use get to identify emails sent by users-PHP source code

Source: Internet
Author: User
This article mainly introduces PHP's methods for identifying users' emails through get, involving php's skills in reading, judging databases, and using session login, for more information about how to use PHP to identify emails sent by users through get, you can refer to this article. it involves php's skills in reading, judging, and using session login for databases, for more information, see

The example in this article describes how PHP uses get to identify users' email sending methods. Share it with you for your reference. The details are as follows:

Send_email.php is as follows:

 

Reg. php is as follows:

 ";}?>

Newfile. php is as follows:

 "; Echo $ out [" created_at "]."
"; Echo" send email
"; // Check whether there is any new email $ SQL _search_email =" select * from email where accepter_id = '". $ id. "'"; $ query = mysql_query ($ SQL _search_email); $ result_email = mysql_fetch_array ($ query ); if ($ result_email ["accepter_id"] == _ SESSION ["id"] & $ result_email ["flag"] = "no") {echo"You have a new email";}?>

Login. php is as follows:

 

Delete_session.php is as follows:

 

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.