request_uri

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
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

request_uri

Post by aceconcepts »

I'm using $_SERVER['REQUEST_URI'] to get the page that i previously came from.

This returns the page and also the directory it sits in.

How can i just get the page i came from?
User avatar
Moocat
Forum Contributor
Posts: 143
Joined: Wed Oct 12, 2005 9:28 am
Location: USA

Post by Moocat »

I'm pretty sure you can get in through javascript, but I think you'll have to pass the previous page to the next page for PHP (form variable?). What reason are you grabbing the previous page for?
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

I'm trying to grab the previous page so that the customer can click a 'Continue shopping' button and so be directed back to the page they came from.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Post Reply