check for ?page=home OR domain.com
The CMS system I am using utilizes query strings, and when I specified the homepage by default it shows with just domain.com It also shows the same content when you view index.php?page=home since it's the same content.
I'm using the following code to display the home rollover image to indicate a user is on that page.
PHP Code:
<?php //home
if (isset($_GET['page']) && $_GET['page'] == 'home') {
echo "<img src=\"images/home_roll.gif\" height=\"35\" border=\"0\" />";
}
else {
echo "<a href=\"index.php?page=home\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image2','','images/home_roll.gif',1)\"><img src=\"images/home.gif\" name=\"Image2\" height=\"35\" border=\"0\" id=\"Image2\" /></a>";
}
?>
The above works properly when ?page=home is in the URL, but possibly "isset" can be modified to use that ALONG with domain.com since "home_roll.gif" doesn't show when it's only domain.com. Maybe using "OR" somehow in the above statement... ?page=home OR domain.com { echo this } else { echo something else } ?
Thank you for any suggestions.