im creating a CMS. I need to have the variable $title set to different things hence:
<?php echo $sitesettings['sitename'];?>::<?php echo ($title) ; ?>
CODE
<title><?php echo $sitesettings['sitename'];?>::<?php echo $title ; ?></title>
to generate the $title variable i use the following code:
CODE
<?php
if(isset($_GET['content'])) {
$content = ($_GET['content']);
if (file_exists("pages/$content.txt") != false){
$title = ($_GET['content']);
}else{
$title = ('404 Error!');
}
}else{
$title = ('Home');
};
?>
if(isset($_GET['content'])) {
$content = ($_GET['content']);
if (file_exists("pages/$content.txt") != false){
$title = ($_GET['content']);
}else{
$title = ('404 Error!');
}
}else{
$title = ('Home');
};
?>
in my mind it seems it should work, but it just shows
Wahoo:: - Firefox and completely ignoores the 2nd variable.
any ideas why? Im completely stumped.
