Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-20-2003, 02:24 PM   #1
DrewKole
Confirmed User
 
Join Date: Aug 2001
Posts: 5,193
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:37 PM   #2
DrewKole
Confirmed User
 
Join Date: Aug 2001
Posts: 5,193
Sorry, it didnt take it, but it was the Echo Variable line
DrewKole is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:40 PM   #3
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
$_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

Last edited by rowan; 04-20-2003 at 02:42 PM..
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:41 PM   #4
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Actually...

$_SERVER["QUERY_STRING"]

That will have "hello" in it.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:41 PM   #5
X37375787
Guest
 
Posts: n/a
or you simply use blah.php?ref=123 and use $ref in your php file.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:44 PM   #6
SicChild
Confirmed User
 
Join Date: Mar 2003
Posts: 365
Quote:
Originally posted by Equinox
or you simply use blah.php?ref=123 and use $ref in your php file.
be safe and use $_GET['ref'] or $_REQUEST['ref']........however as said before $_SERVER['QUERY_STRING'] would return everything after ?
SicChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 02:47 PM   #7
DrewKole
Confirmed User
 
Join Date: Aug 2001
Posts: 5,193
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.
DrewKole is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-20-2003, 03:15 PM   #8
cluck
Confirmed User
 
Join Date: Dec 2002
Location: New Jersey
Posts: 5,248
echo('join.shtml?' . $_SERVER['QUERY_STRING']);


That should work fine but then again it's 4/20, who knows if what I say works?
cluck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.