[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: [PHP] get question
From: Jack S <jacklistmail () gmail ! com>
Date: 2012-08-27 19:17:28
Message-ID: CAL4+xNYm5mzheNN9bLZe4STanbi1vqBeV=spw+TPSBvk5CbgBQ () mail ! gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic