I think I managed to do it myself- <?php $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($referer, $query)+2))); $searchstring = urldecode($searcharray[0]); echo "Your search words are: $searchstring<br /><br />"; ?>
Hurrah! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php