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)
-   -   Carrying referrer data using php? (https://gfy.com/showthread.php?t=126822)

DrewKole 04-20-2003 02:24 PM

Carrying referrer data using php?
 
I was using shtml files and <!--#echo var="QUERY_STRING"-->

and it was working just fine, but... how do I do the same with php?

Was using blahblah.html?referrerhere

Need to use blahblah.php?referrerhere

Is there a simple way?

DrewKole 04-20-2003 02:37 PM

Sorry, it didnt take it, but it was the Echo Variable line

rowan 04-20-2003 02:40 PM

$_SERVER["REQUEST_URI"] should do the trick, if your URL is:

http://www.somedomain.com/blah.html?hello

then that variable will have:

/blah.html?hello

rowan 04-20-2003 02:41 PM

Actually...

$_SERVER["QUERY_STRING"]

That will have "hello" in it.

X37375787 04-20-2003 02:41 PM

or you simply use blah.php?ref=123 and use $ref in your php file.:2 cents:

SicChild 04-20-2003 02:44 PM

Quote:

Originally posted by Equinox
or you simply use blah.php?ref=123 and use $ref in your php file.:2 cents:
be safe and use $_GET['ref'] or $_REQUEST['ref']........however as said before $_SERVER['QUERY_STRING'] would return everything after ?

DrewKole 04-20-2003 02:47 PM

Hmm, so... where would I be putting those strings?

As is, I have every link having the join.shtml?referreridhere

the html shows join.shtml?[#echo var="QUERY_STRING"]

and it works pretty well.

Sorry, Im code stupid... and this board doesnt help by jacking your ability to show it either...

I've got a dinner engagement, but afterwards if anyone is available on ICQ, I'd really appreciate it.

cluck 04-20-2003 03:15 PM

echo('join.shtml?' . $_SERVER['QUERY_STRING']);


That should work fine but then again it's 4/20, who knows if what I say works? :rasta


All times are GMT -7. The time now is 04:45 PM.

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