Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backbutton to search results 1

Status
Not open for further replies.

miketm

Programmer
Oct 19, 2003
18
AU
Hi, could someone please help me with some tips on how to create a link back to search results, as once you searched a database and displayed the results, then you clicked and selected a record from that result page which pop to a "new page", but then I would like to select another record so I need a LINK on that "new page" to return to search results page. How can we do that??? Thank you for your help!

Mike
 
You can create a link like this:
<a href="javascript:history.back()">Back</a>
but that relies on the browser supporting JS.

What I do, which is slightly more work, is save the posted variables from the search page in a session and when they go back to the search page, I repopulate their last search.
 
Thank you very much Ericbrunson, It works beautifully.
I used the javascript that you suggested, as my skills in php still weak so otherway of doing it scared me very much (no ideas)!!!

Thanks!!!
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top