Jump to content

URL Question


voxxtelum

Recommended Posts

I am designing a site that has a referral system and I want to create a URL that the users receive once they sign up.  I want the referral link to look like www.url.com/x where x is their user id.  I know how to create a referral link using GET, but the URL would look something like www.url.com/index.php?refid=x and I want something simpler than that.

 

Any help would be greatly appreciated.

Thanks

Link to comment
Share on other sites

Thanks for the quick response and I am sorry if I was unclear with my original question.  I know how I can retrieve variables from the URL using GET, I just don't know how to get the id from the URL when it looks like www.url.com/x.  For example if member1 signs up and his user id is 1, then I want the referral link to look like www.url.com/1.  How can I get the 1 from the URL so that I can use it to know who referred him?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.