Hello,
Could anyone help me with next problem:
Visitors come to a website through a Clickbank affiliatelink
http: //nick.vendor.hop.clickbank.net
But they will land on different websites based on an URL parameter, for example
http: //nick.vendor.hop.clickbank.net?x=prod1 they’ll go to www.websiteA.com
http: //nick.vendor.hop.clickbank.net?x=prod2 they’ll go to www.websiteB.com
http: //nick.vendor.hop.clickbank.net?x=prod3 they’ll go to www.websiteC.com
remark : nick is also variable (it is the affiliates name), so links could be:
http: //NICK.vendor.hop.clickbank.net?x=PROD1 or prod2 etc…
or
http: //JOHN.vendor.hop.clickbank.net?x=PROD1 or prod2 etc…
or
http: //CHARLES.vendor.hop.clickbank.net?x=PROD1 or prod2 etc…
Clickbank is linking to a page (based on the Clickbank account configuration) including following parameters, where a script will redirect the visitor to the right website
http: //www.mylandingwebsite.com/linkpage.php?hop=nick&x=prod1
So there are 2 variable parameters (value of hop and value of x)!
The problem is that with the ‘meta refresh content’ the parameters are not passed to the new URL.
For example:
The link http: //nick.vendor.hop.clickbank.net?x=prod1 should lead to or result in
http: //www.websiteA.com?hop=nick (with a 60 days cookie so that the affiliate still gets his commission if the visitor decide to come back later and buy). Obviously I only need the hop=’value’ at the final website.
This is the code I have so far (it leads to the right website based on ‘x=’ but it doesn’t pass the ‘hop=’ value , nick or john or charles or whatsoever)
Linkpage.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Doorlinken</title>
</head>
<body>
<?php
if(isset($_GET['x']))
{
if($_GET['x'] == "prod1")
{
echo '<meta http-equiv="refresh" content= "0;URL=http://www.websiteA.com" />';
}
elseif($_GET['x'] == "prod2")
{
echo '<meta http-equiv="refresh" content= "0;URL=http://www.websiteB.com" />';
}
elseif($_GET['x'] == "prod3")
{
echo '<meta http-equiv="refresh" content= "0;URL=http://wwwwebsiteC.com" />';
}
}
else echo '<meta http-equiv="refresh" content= "0;URL=http://www.website.com/products.php" />';
?>
</body>
</html>
So the result should be content= "0;URL=http://www.websiteA.com?hop=nick" or john or …
And do I need the head-section? Or just the script between < ?php and ? >
Thanks in advance for your help,
x