Referral System PHP
- by Liam
I have a membership based website and im planning on implementing a referral system.
My website is credit based, the idea is that if User X refers User Y, then User X gets 100 bonus credits.
Has anybody built a referral system before and if so what obstacles should I bear in mind? I've had a snoop round SO tonight but couldn't find any suitable answers.
My theory is to give each user a random string which is generated and stored in the DB when they sign up, The user will then be presented with a URL incl. that string which when they pass to somebody (User Z), User Z is then sent to a page, the page then uses the GET method to gather the Random string and update the DB Row they currently occupy, does this sound feasible or could it easily be breached?
Thanks