![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Aug 2001
Posts: 5,193
|
Sorry, it didnt take it, but it was the Echo Variable line
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Guest
Posts: n/a
|
or you simply use blah.php?ref=123 and use $ref in your php file.
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Mar 2003
Posts: 365
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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? ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |