Any questions involving matching text strings to patterns - the pattern is called a "regular expression."
Moderator: General Moderators
-
shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
-
Contact:
Post
by shiznatix »
Ello all!
So here it goes. I need to get the query string from the referer. Like if I have this as the HTTP_REFERER:
http://www.domain.com/Search.php?ting=1&funk=yum
I want to get 'thing=1&funk=yum' out of that. How do I do this?
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
-
shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
-
Contact:
Post
by shiznatix »
many thanks
-
RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Post
by RobertGonzalez »
Won't $_SERVER['QUERY_STRING'] be more specific to your task?
-
feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Post
by feyd »
Everah wrote:Won't $_SERVER['QUERY_STRING'] be more specific to your task?
He's looking at the referral string.

-
jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Post
by jayshields »
-
RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Post
by RobertGonzalez »
Like that little shrimp in Finding Nemo...
I am so ashamed.
