Jump to content

Text DIsplay on a Certian Page


Kevin M

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...