Using php or javascript or regex, is there a quick (one-liner hopefully) to get the query string from the previous (referrer) URL?
Example,
User is at
www.sample.com?one
Then clicks link to go to
www.sample.com?two
From page two... I want to know the previous query string "one."
See Question&Answers more detail:os