bobby
11th April 2006, 12:22 PM
So I have an affililate with a text linking to my site, with the link something like this:
www.mysite.com
In mysite.com on every single page I have this code:
<?php
if($_GET['a_aid'] != '')
print "http://www.mysite.com/affiliates/scripts/t2.php?a_aid=".$_GET[";
?>
So it is reading the querystring to see if there is a referrer, which there is.
When buying a product I have this passed to paypal:
<input type=text name="notify_url" value="http://www.mysite.com/affiliates/scripts/paypal.php">
<input type=text name="custom" value="<?=$_COOKIE['POSTAff2Cookie']?>">
I set these as text boxes rather than hidden, just to see if it was filled with the correct values - which it is.
One silly question, the cookie: do I have to set this myself, and if so, where? If I don't have to set it myself them I am very confused as to why this is not working.
Any suggestions or things to try?
Thank you.
www.mysite.com
In mysite.com on every single page I have this code:
<?php
if($_GET['a_aid'] != '')
print "http://www.mysite.com/affiliates/scripts/t2.php?a_aid=".$_GET[";
?>
So it is reading the querystring to see if there is a referrer, which there is.
When buying a product I have this passed to paypal:
<input type=text name="notify_url" value="http://www.mysite.com/affiliates/scripts/paypal.php">
<input type=text name="custom" value="<?=$_COOKIE['POSTAff2Cookie']?>">
I set these as text boxes rather than hidden, just to see if it was filled with the correct values - which it is.
One silly question, the cookie: do I have to set this myself, and if so, where? If I don't have to set it myself them I am very confused as to why this is not working.
Any suggestions or things to try?
Thank you.