I just want to be clear so we understand what I need done.
You type A.com on your browser.
1) A.com code will read:
<html>
<META HTTP-EQUIV = " Refresh " CONTENT= " 0; URL=http:// www. z.com ">
</meta>
<body>
</body>
</html>
So it will redirect immediately to Z.com
2) Z.com needs to determine where the traffic came from to set a variable,in this case:
$zredirect
if the traffic came from A.com, then
$zredirect="www. anotherserver.com/affcode=123";
if the traffic came from B.com, then
$zredirect="www. adifferentserver.com/affcode=456";
if the traffic came from C.com, then
$zredirect="www. anotherdifferentserver.com/affcode=789";
The Z.com HTML Code will look like:
echo "<HTML>
<META HTTP-EQUIV = \" Refresh \" CONTENT= \" 0; URL=http://$zredirect\">
</meta>
<body>
</body>
</html>";
So how do I do that?
Marc