Thank you for your reply. It's my fault for not clarifying. (more of how to get the static page requested)
When pages are served using index.php?page=about the following can be used to check for that page and display something.
PHP Code:
<?php
$request = $_SERVER['REQUEST_URI'];
if (isset($_GET['page']) && $_GET['page'] == 'about') { // see if ?page is present and if it is equal to "about"
echo '<span style="color: red; font-weight: bold;">About Us</span>';
}
else {
echo '<a href="?page=about" class="menu">About Us</a>';
}
?>
I wondered how this could be changed to work if the page was a static page like... domain.com/about.php
For instance, like a header graphic, in the area where the image would be I would include a file like header_graphic.php
header_graphic.php would determine the actual page URL like domain.com/about.php domain.com/contact.php so on...once it determined the page it would display the correct info.
The graphic can of course be manually changed in each static page, but if you had say 15 pages...you could make the changes in one file rather than each. Thank you.
Bookmarks