I have a question about implementing breadcrumbs on a dynamic website.
How can I retrieve the previous page's URL so that I can use it in my breadcrumb navigation on my current page? With GET?
I'm trying to figure this out, so I'd be grateful if someone could save me a few hours.
Thank you !
Hi please don't re-invent the wheel.
There are already ready made classes for this.
Just Google PHP breadcrumbs class.
Or what PHP framework are you using?
uhm, I'm not actually trying to "reinvent the wheel"...
So what is the name of the class you are using?
You can use $SERVER['HTTPREFERER'] if youi only want the previous peage, or if you want more than that, you can store each page to a session variable. $_SESSION allows for you to store data across page requests.
it's working fine - thanks!
This topic is now closed. New replies are no longer allowed.