creating a back link from a specific url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

creating a back link from a specific url

Post 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
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post 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...
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

Post 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.
Post Reply