If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2003
    Member #
    I want to have a contest at my site which involves A PART where I'd want the visitors to get "points" for referrals.
    When they sign up, or enter the contest, they get a unique URL afterwards to refer their friends. And when their FRIENDS sign up via their friend's link, the friend #1 gets credit/points.

    I was wondering how can I do this with php? I looked all over and cannot find anything. I would hate to do it manually or ask people to just say "use my name as a referal" b/c that wouldn't work as well. I've seen a lot of sites have this sort of system but I just don't know how to do it...


  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    San Francisco, CA
    Member #
    2 times
    Well.. I'm going to assume you're using a database for your work. In that users's registration information add a field called "referralid" make this a sequencial number for all users.

    Give them a link that says: where 452 is the referral id. On your contest.php have a statement that says something to the likes of:
    if($_GET['r]) echo "<input type='hidden' name='referralid' value='$_GET[r]'>";
    Then when they submit the contest just check for the presence of $_POST['referralid']
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 07:35 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: