![]() |
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? |
Sorry, it didnt take it, but it was the Echo Variable line
|
$_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 |
Actually...
$_SERVER["QUERY_STRING"] That will have "hello" in it. |
or you simply use blah.php?ref=123 and use $ref in your php file.:2 cents:
|
Quote:
|
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. |
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