GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Yo PHP guys.......PHP noob here has a question (https://gfy.com/showthread.php?t=572047)

Young 02-04-2006 05:29 AM

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?

Jakke PNG 02-04-2006 05:30 AM

Very easy.

Jakke PNG 02-04-2006 05:32 AM

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

Young 02-04-2006 05:33 AM

Quote:

Originally Posted by TeenGodFather
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

Thanks I appreciate it. Still learning...this helps alot. :thumbsup

ddfGandalf 02-04-2006 05:35 AM

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