How to redirect an SQL query to another page?
Posted on 2007-11-20
I have a page that lists an inventory. We have created another page that is printer friendly (fancy stuff stripped out) and want to put a link on the original page that includes the current search results which will redirect the query to the printer friendly page.
So, in short, how do I grab the current SQL query statement in the URL, strip out the page reference, add in my own page URL so the user will get the same results on the new page? Confused yet?
This is what is on my results page URL
I am adding a button to that page that will redirect the user to a printer friendly page:
So, how can I grab the current URL and/or search query and direct it to my printer_friendly page?