Jump to content

search words


canadabeeau

Recommended Posts

You could do something like this (I'm not sure if this is what your talking about though):

list($server, $keywords) = explode('?', $_SERVER['HTTP_REFERER']);
$keywords = explode('&', $keywords);
foreach($keywords as $words){
list($key, $phrase) = explode('=', $words);
if($key == 'q'){
	echo urldecode($phrase);
	break;
}
}

Link to comment
https://forums.phpfreaks.com/topic/187005-search-words/#findComment-987541
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.