Can you help me with a php bug?
Can I pick your brains for a moment please?
This code below
<?php if(isset($_GET["referrer"]))
{
// plimus is in the get parameter list
$custom_plimid = $_GET["referrer"];
}
else
{
// plimus doesnt exist
$custom_plimid = "SOME-REF";
}
?>
https://www.plimus.com/jsp/redirect.jsp?contractId=XXXXXX&referrer=ZZZZZZ
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
Web Design & SEO Agency | Serving World Wide from New Delhi, India