Jump to content

Referral system & links


Recommended Posts

Hi everyone,

 

I've a basic issue to solve. I want to give my customers links so that they can send this link forums etc. In return, I'll give them shop points.

Current referral module is working by sending e mails to friends containing a link like:

.....authentication.php?create_account=1&sponsor=Mmp4a0d......

 

What I want to do is,

 

1. adding a page (ie with CMS) which contains specific link for the user like:

...authentication.php?create_account=1&referrer_id=115 (ie 155 is the user id)

 

2. when someone else registers with using that link,

update the table that I created to keep user id and sponsored id

 

I can manage the first part, I can also manage updating database but I have no clue about where to put the code regarding the second part.

 

I should check if there is a parameter (I mean referrer_id) and if so, update my referral table after successful registration.

 

I'm sure that it's very basic issue for those seasoned PHP coders, so thanks in advance for your replies.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 years later...
×
×
  • Create New...