bradleynsmith Posted May 21, 2007 Share Posted May 21, 2007 Hi Freaks (I've always wanted to say that !) I have a Clickbank URL which I want to use to embed two pieces of information onto a page. eg. http://YOURCLICKBANKID.myclickbank.hop.clickbank.net?id=7630172892917082 I want to do two things: 1. Pick up the site from which this was referred (the referral URL) and use this elsewhere, in a 404 Error Page 2. Pick out the last set of digits from the ?id=XXXXXXXXXXXXXXXX and embed that elsewhere in the page. I know this is fairly simple in PHP - but I'm a complete Newbie Can someone please point me in the right direction ? Thanks -- Brad Link to comment https://forums.phpfreaks.com/topic/52331-strip-and-embed-a-url-into-a-page/ Share on other sites More sharing options...
AndyB Posted May 21, 2007 Share Posted May 21, 2007 $_SERVER['HTTP_REFERER'] for the referring page http://ca.php.net/manual/en/function.explode.php - explode() to split a string at any point Link to comment https://forums.phpfreaks.com/topic/52331-strip-and-embed-a-url-into-a-page/#findComment-258230 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.