I want to start an affiliate program for current users of ours to earn money. I want to know if anyone knows I can pass a hidden variable containg the users affiliate ID from their website to ours when someone clicks the link to visit our site?
Basically I want something like this:
Affiliate website
<input type="hidden" name="affiliateID" value="12345">
<a href="http://www.mydomain.com/order.php">click here</a>
When somebody clicks the link it will take them to our site and should pass the value '12345' to it.
Our website
$affiliateID="<?=affiliateID?>"
When the user fills out our form and submits it, it should send the hidden value of affiliateID to us, so we know which affiliate gets the money.
Would this work or not? If not, can anyone suggest a way?
Thanks