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
https://forums.phpfreaks.com/topic/88624-url-question/
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
https://forums.phpfreaks.com/topic/88624-url-question/#findComment-453794
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.