Page 1 of 1

Get previous query string

Posted: Wed Aug 16, 2006 8:08 pm
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?

Posted: Wed Aug 16, 2006 8:09 pm
by feyd
parse_url()

even easier.

Posted: Wed Aug 16, 2006 8:47 pm
by shiznatix
many thanks

Posted: Thu Aug 17, 2006 2:45 am
by RobertGonzalez
Won't $_SERVER['QUERY_STRING'] be more specific to your task?

Posted: Thu Aug 17, 2006 7:48 am
by feyd
Everah wrote:Won't $_SERVER['QUERY_STRING'] be more specific to your task?
He's looking at the referral string. Image

Posted: Thu Aug 17, 2006 7:58 am
by jayshields
Image

Posted: Thu Aug 17, 2006 6:04 pm
by RobertGonzalez
Like that little shrimp in Finding Nemo...

I am so ashamed.Image