FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

very simple PHP code to get search query string

 


Lacoste
it will be useful when you need to know or collect search query strings, that brought you user

Code:
if (preg_match("/[?|&][q|p]=([a-z+]+)/i", $_SERVER["HTTP_REFERER"], $match)) {
        $q = urldecode($match[1]);
}
bdoneck
Or you could just check your web stats through cPanel
Related topics

Simple PHP forum code needed!
Help With Simple PHP Code Snipit
mySQL Query/PHP code - get the highest value...
What is a good or bad php code?
Simple PHP Navigation

Show PHP Code
another simple php request
Actionscript 2.0 - add line break to string?
How to build simple PHP upload form
Securing your php code

simple php problem, please help...
PHP CODE INCLUSION
I need a VERY simple php script
my PHP code benchmark script that got some problems
Anyone care to help me with a simple PHP Form ?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.