View Single Post
Old 06-05-2023, 10:54 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana.
Posts: 659
Why isnt this code pulling the CCBill affiliate ID?

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
__________________
PublisherBucks
Wellness Affiliate Program.
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote