> $referer =
> "http://search.yahoo.com/search?p=pianist+web+sites+design&ei=UTF-8&fr=fp-ta
> b-web-t&cop=mss&tab=";
> if (strpos($referer, "q=") != FALSE) { $query = "q=";} else if
> (strpos($referer, "p=") != FALSE) { $query = "p=";}
> $searcharray = explode("&", substr($referer, (strpos($refere
I think I managed to do it myself-
http://search.yahoo.com/search?p=pianist+web+sites+design&ei=UTF-8&fr=fp-ta
b-web-t&cop=mss&tab=";
if (strpos($referer, "q=") != FALSE) { $query = "q=";} else if
(strpos($referer, "p=") != FALSE) { $query = "p=";}
$searcharray = explode("&", substr($referer, (st
m: Aidan Lister [mailto:[EMAIL PROTECTED]
Sent: 28 June 2004 11:47
To: [EMAIL PROTECTED]
Subject: [PHP] Re: getting query string from referer website
$_SERVER['QUERY_STRING'] has nothing to do with the refering website.
foo.php?bar=6
The QUERY_STRING for the above example is: bar=6
When
$_SERVER['QUERY_STRING'] has nothing to do with the refering website.
foo.php?bar=6
The QUERY_STRING for the above example is: bar=6
When someone visits your page, they visit foo.php (for example), thus your
QUERY_STRING will always be blank.
I believe you're looking for HTTP_REFERER
"I.A.
4 matches
Mail list logo