Can you help me with a php bug?

by askloz
10 replies
Hey there,

Can I pick your brains for a moment please?

This code below

PHP Code:
<?php if(isset($_GET["referrer"]))
{
// plimus is in the get parameter list
$custom_plimid $_GET["referrer"];
}
else
{
// plimus doesnt exist
$custom_plimid "SOME-REF";
}
?>
Is similar to the code i use for clickbank hop links, only difference is the variables are different

Code:
https://www.plimus.com/jsp/redirect.jsp?contractId=XXXXXX&referrer=ZZZZZZ
It works fine for Clickbank(I changed the variables above to reflect Plimus), to extract the username which i use to re-populate the affiliate links of those who send me leads, just in case if ppl delete their cookies so they are always re-cookied, so not to lose the sale.

All this code does, at present, is it only puts in my affiliate ID in the optin form code, and not anyone elses when they click on their affiliate link.

Is there anything I need to add to this code above so it ALWAYS extracts the affiliate username, and if the visitor comes to my site directly (without affiliate link) it defaults to mine, the reason for that is if the re-populated urls do not have a referral id in there, it messes things up...

Thanks in advance for your help

Warm regards

Loz
#bug #php

Trending Topics