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
C_Calav
Forum Contributor
Posts: 395 Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand
Post
by C_Calav » Thu Jul 29, 2004 2:16 am
if you choose add item, then go to the cart page and you want to keep shopping and go back top the page you were just on, what is that called?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Jul 29, 2004 2:20 am
"continue shopping" or "previous location", there are many more.. I don't know of a definitive name..
C_Calav
Forum Contributor
Posts: 395 Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand
Post
by C_Calav » Thu Jul 29, 2004 2:37 am
yeah.. whats the PHP funcrtion if there is one to go back to where you were?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Jul 29, 2004 2:39 am
there is none that I know of. I use sessions for knowing where they came from.
C_Calav
Forum Contributor
Posts: 395 Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand
Post
by C_Calav » Thu Jul 29, 2004 2:40 am
ok, how do you direct them back using there session?
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Jul 29, 2004 2:53 am
I store the last page in the session.. when you want to move backward from an ordering type page, I generate a link back to that page for "continue shopping"