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)
-   -   Simple PHP Help Needed (https://gfy.com/showthread.php?t=692634)

phasic 01-04-2007 12:32 AM

Simple PHP Help Needed
 
Basically all I need is to be able to do the following.

http://site.com/page.php?ref=name

then in the page it makes the links that i specify do the following.

http://sponsor.com/campaign=name

Can I get some help on this?

Thanks!

AndrewKanuck 01-04-2007 12:43 AM

Read up on $_request & $_get

Mr Pheer 01-04-2007 01:03 AM

Code:

<?php
 $name = $_GET['ref'];
 echo "<a href=\"http://sponsor.com/campaign=$name\">$name</a><br>";
 ?>


Boobzooka 01-04-2007 01:03 AM

Simpler than it seems. For your example the link should be:
Code:

"http://sponsor.com/campaign=<?= $_GET['ref'] ?>"

phasic 01-04-2007 01:04 AM

Thanks a lot! Trying it out now!

Mr Pheer 01-04-2007 01:07 AM

Quote:

Originally Posted by DareRing (Post 11652022)
Simpler than it seems. For your example the link should be:
Code:

"http://sponsor.com/campaign=<?= $_GET['ref'] ?>"

hmm.. yeah that way works too :thumbsup

borked 01-04-2007 01:13 AM

<?php
header("Location: http://sponsor.com/campaign=".$_GET['ref']);
?>

ToplistBlog_Com 01-04-2007 06:53 AM

I don't konw PHP


All times are GMT -7. The time now is 04:16 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123