Kevin M Posted February 11, 2007 Share Posted February 11, 2007 I'm trying to make a code in PHP that shows your location inside a Div. Rather than having it show the HTML on every single page be different, I want to have 1 code, which I will include. In that code, I want it to make sure that you are on a certain page, and then display the correct location for that page.Some something like this would display:Home->Movies->Harry PotterAnd Harry Potter would be the page you would be on, except they would all be links.I'm pretty sure in JavaScript, you could probably do this with something like this: <script type="text/javascript'>//Display Text on Certain Pageif(location.href.match(/urlhere) {document.write("Location Here")}</script> So, is there anyway I could do this in PHP?Thanks,Kevin Link to comment Share on other sites More sharing options...
jlhaslip Posted February 12, 2007 Share Posted February 12, 2007 Check at Hotscripts.com for a breadcrumb script which appears to be what you want. Link to comment Share on other sites More sharing options...
Kevin M Posted February 13, 2007 Author Share Posted February 13, 2007 Thanks, I'll take a look. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now