Hello,
I am trying to strip just the keyword from a URL from the referring page
What I need is the word after q=
Here is the URL http://localhost:8888/search.php?q=beans&t=rp&x=32&y=9
I can get it using this:
$query_part=strstr($_SERVER['http_referer'], "q=");
But then, it leaves everything else too, like the &t=rp&x=32&y=9 part
Any ideas?