Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am building a product promotion site where affiliates will register to promote products. Each affilite will have a unique ID on registering and each affiliate will use a link which include his affiliate to direct custumers to product order page. I need a way to capture the affiliate ID for further processing and I am thinking of how to get the link into my PHP code and extract the affiliate ID fro it. Any ideas?
Posted

1 solution

I suggest you look into the content of $_SERVER array.

(use something like

PHP
<?php   print_r($_SERVER); ??>


Look at the various values in this array and decide which one is good for you.

Another option is to use javaScript and the location.(various stuff) and transmit that to the server (how depends upon what you wish to do with it).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900