How would I make it possible to have dynamic(i think thats the word) titles with this setup? For example when I'm viewing a profile I want it to say Viewing profile of USERNAME' inside <title>
. How could I make this possible without putting the html top on each indivudual page?
Thanks a lot.
and please dont start talking about mvc's, i dont need that
<html>
<head>
<title>KALASHNIKOV - $??</title>
</head>
<body>
<?php
switch($area) {
// The default page
default:
include_once('pages/main.php');
break;
// This is for registering an account
case 'register':
include_once('pages/register.php');
break;
// This is to log in!! (obviously)
case 'login':
include_once('pages/login.php');
break;
// This is for logging out
case 'logout':
logout();
break;
}
?>
</body>
</html>