I'm trying to build a little script that does that following... Affiliate has an url like this: http://www.site.com/pro.php?id=123 rip the the 123, save it into a variable. insert that variable to all the links on the page. can someone help me write that? I haven't programmed anything for years, the last language I learned asp and I pretty much forgot all of it. This should be incredibly easy though, right? thanks
No need to 'rip' it. $aff_id = $_GET['id']; $unprepared_link = "http://www.yoursite.com/home.html"; $prepared_link = $unprepared_link . '?id=' . $aff_id; PHP: