[thelist] Dynamic title

DAVOUD TOHIDY dtohidy at hotmail.com
Fri Jul 23 15:08:33 CDT 2010


Hi,
I am trying to have different titles, etc. for different pages. The index.php is the main page where other pages are being dynamically placed and replaced within this page by defining an array and etc.
$mypage = array ("" => "myhomepage.php", "0x01" => "overview.php",   // etc.
);

I have the following in the header of index.php file:

switch($_SERVER['PHP_SELF'])
{
case '/index.php':
     $title = 'Home page title';
     $keywords = 'Home page keywords';
     $description = 'Home page desc';
     break;
case '/?pId=0x01':
     $title = 'Company Overview';
     $keywords = 'overview, overview2';
     $description = 'This is the overview of the company';
     break;
default: '/index.php';
}
It only shows the title etc. for index.php page. Other pages do not have their own title. etc the title for home page appear for other pages.
Your input would be appreciated.
Davoud 		 	   		  
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385


More information about the thelist mailing list