If I have a page like:
example.com/page1.html
and on that page I have an outgoing affiliate link like:
/links/link.php?s=link1
and in link.php I have:
if ($_GET['s']; == "link1") {$link = "example2.com";}
header("Location: $link");
In the above steps, how do I get that "page1.html" (the page where the link has been clicked onto) so I can insert it as a variable to the end of my $link?
That would tell me the originating page of my sale.
Thanks