Hello All,
Trying to figure out why when I include the page that contains this
code, I'm not able to get the $calling_page populated with any values.
Any help appreciated...
<?
# Dynamic Content based in page
$calling_page = $_GET['page'];
# Home Page
------------------------------------------------------------------------------------------------------------------------------
if(!($calling_page)) {
$title = "Title 1 - $calling_page";
$body = "<body />";
} elseif ($calling_page == "index") {
$title = "Title 2 - $calling_page";
$body = "<body />";
# Non Specified Page
--------------------------------------------------------------------------------------------------------------
} else {
$title = "Title 3 - $calling_page";
$body = "<body />";
}
echo "<title>".$title."</title>";
?>
--
Thanks!
Joey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php