Created
October 19, 2018 15:02
-
-
Save underdown/bc03773509868c1dbccc075fc03c960e to your computer and use it in GitHub Desktop.
Affiliate tracking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach($_GET as $k=>$v) | |
$affline=$affline."&".urlencode($k)."=".urlencode($v); | |
$affline=substr($affline,1); | |
?> | |
//place this at the very top of the page | |
//decorate links with: <a href="http://mydomain.com/?<?php echo $affline; ?>">link</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment