I have a situation i which I have a form say x.html
that form has a text box for searching users with a keyword like software engineers

when submit is pressed it will give the list of software engineers in USA

now when the location tab in the result table is clicked I need to sort the results by location and the search keyword

the problem

when I click on the location i send the control to another php script that takes care of the location sorting but There is no way I can transfer the keyword as I cannot get a value from the first form ....
any suggestions

form (with keyword ) ->php script with keyword search -> select location > new script so sort results by location

I need the form keyword from the 1 script to use in the selection location script

kinda like monster search results when you get results of candidates you can select from the top bar by which one you want to sort by location ,city ,country ....etc