How does yii-php provide an invitation registration link function?

Source: Internet
Author: User
That is, each member generates a link, clicks the link and registers successfully, and adds a credit to the member. The infinite recursive sharing link is generated by each member. click the link and register it successfully, and add a credit to the member. Unlimited recursive sharing links

Reply content:

That is, each member generates a link, clicks the link and registers successfully, and adds a credit to the member. Unlimited recursive sharing links

The user's invitation code can be stored in the user table and carried and verified during the registration process.

The principle is the same as that of the unlimited menu. the recommended person stores the ID of the superior user, so that the tree structure can be constructed.

Generated link, url? Pid = 1. you can select encryption for specific parameters. Obtain this pid during registration and write it to the registered user's parentId. You can store parentId directly in the user table or create a user relationship table separately.

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.