Page 1 of 1

creating a back link from a specific url

Posted: Tue Jul 12, 2005 9:43 am
by soianyc
Im trying to create a specific back link. Im setting up a catalog. When you click on a specific item it goes to a page which shows that item and a few other thumbnails of that picture. When a thumbnail gets clicked on, that thumbnail goes into the main box and the picture that was in the main box goes to a thumbnail. What I would like to do is create a link on the page that goes back to the catalog of specific items i was in.

here is a link of my site with a specific example

http://www.treschicfurs.com/catalog2/ar ... s&itemID=2

Now, i have a return to catalog link up there, it doesn work. When i hit the back button after i see the thumbnails then it won't go back to the catalog, it goes to the previous picture loaded.

Im not even sure how i would try to do this. I found a script that gets the url and then i tried to use rtrim to trim the id. It didn't work. What direction can i take to try and solve this problem.

I would like to avoid javascript on this.

thanks

-soia

Posted: Tue Jul 12, 2005 10:37 am
by theda
I'm sure, an easy way would be setting a variable for the current page you're on, setting it to the HTTP_REFERER, and have the link click back to the refering link...

Posted: Tue Jul 12, 2005 11:14 am
by soianyc
With HTTP_REFERER whenever i click on a thumbnail, HTTP_REFERER grabs that address. I want the address to stay the same in the "Return To Catalog" Link.