I just ordered a book on Sitepoint for PHP/MySQL. I'm not lazy, I just don't understand PHP scripting. I downloaded this script to mask affiliate codes and I sort of understand it. I was hoping some of you could give me - a N00B - more concrete examples of applying this script. Save this page as jump.php and when linking to this script use the following: <a href="jump.php?m=XXXXXX">XXXXXX</a> Where XXXXXX is your merchant. */ $m = $_GET['m']; if ($m == "") {$link = "http://www.stevedawson.com/mobiles/";} // Default Blank if ($m == "Just Phones") {$link = "http://www.awin1.com/awclick.php?mid=97&id=38362";} if ($m == "UKPhoneShop") {$link = "http://tracker.tradedoubler.com/click?p=985&a=949731&g=5119";} /* To add more jump links, just copy and paste one of the lines above and modify the $m and $link values */ header("Location: $link"); // Jump to the hiddden affiliate URL above exit(); ?> Code (markup):
This is another way to hide URLS. For example, if I click on jump.php?m=UKPhoneShop It will take me to http://tracker.tradedoubler.com/click?p=985&a=949731&g=5119 Peace,