RE: [PHP] Re: getting query string from referer website

2004-06-28 Thread Philip Olson
> $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

RE: [PHP] Re: getting query string from referer website

2004-06-28 Thread I.A. Gray
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

RE: [PHP] Re: getting query string from referer website

2004-06-28 Thread I.A. Gray
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

[PHP] Re: getting query string from referer website

2004-06-28 Thread Aidan Lister
$_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.