I'm using the following php code, which I was under the impression should allow me to pull the &PA=AFFILIATEID from a standard CCBill link:
Code:
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=XXXXXX-0000&PA=AFFILIATEID
Code:
<?php
$affiliateCode = isset($_GET['PA']) ? $_GET['PA'] : '';
?>
Then using the following to try and display the code in index.php (just a normal html page with .php extension:
Code:
<?php echo $affiliateCode; ?>
But it isn't working, what am I missing please?
I notice when you use CCBill links there is a redirect to the main
https://www.domain.com of the site, is there a way to capture the affiliate code prior to the redirect happening (or an easier way I'm missing)?
Thanks for any advice, feedback, solutions
