![]() |
Yo PHP guys.......PHP noob here has a question
<----------------- Noob
How hard is it to snatch up a referring URL...find an affiliate code or ID in that referring URL....and then save that shit to a file or display it on a page? I'm just learning PHP so if someone could just point me in the right direction. Sic...you out there dude? |
Very easy.
|
send them to like
url.com/index.php?ref=123456 the on the page: <?php echo $_GET['ref']; ?> that prints out 123456 so if you want to transfer it to the next page <a href="http://www.nexturl.com/index.php?ref=<?php echo $_GET['ref']; ?>"> rinse and repeat |
Quote:
|
For less typing you could use <?=$_GET['ref']?> instead of <?php echo $_GET['ref'];?>
:) |
| All times are GMT -7. The time now is 03:35 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123