Okay, I am trying to setup an affiliate program. On the affilates web site, they will have a link to our website which contains this code in the link:
<a href="http://www.whatnott.com/redirect.php?affiliateID=darkarmy.net"
onmouseover="window.status='http://www.whatnott.com';return true;"
onmouseout="window.status=' ';return true;">
I am calling redirect.php to redirect them to our index page. This way it eliminates having this is the URL bar:
http://www.whatnott.com?affiliateID=darkarmy.net
Problem is, how do I pass the variable $affiliateID from page to page of the site without losing it? I could make the link go directly to our order form and it will pass fine, but if they got to a couple of other pages on our site and then go back to the order form, $affiliateID is lost. I can get it to display on the page that the link calls first by using <?=$affiliateID?> but how do I pass that along to other pages keeping it hidden?
I tried putting a hidden field like this on every page of our site, but it doesn't seem to be working:
<input type="hidden" name="affiliateID" value="<?=$affiliateID?>">
Or is it possible that it is getting lost in the redirect? This is what I have on the redirect page:
$affilateID = $affiliateID;
header ("Location: http://www.whatnott.com");
Thanks for your help in advance.