i am very new to php -
- i know i am asking for a more help than the norm ...
i have been working on a script for 3 weeks, trying to figure out how to pull seperate header files - dependent on from which known url file is called ---
if somebody can send me or post a vialble solution - i would be grateful -
I hope somebody can point me in the right direction ----
we have a site we would like to show different headers - we want to personalize the page view depending on from which known url - the request is coming from
IE: when a visitor pulls our page...
- from our home page our standard header file is shown
- from bob.com bobs/ourlink/ header file is shown
- from amy.com/ourlink/ amys header is shown ,etc
here is our code that pulls our standard header file and puts it into our index page -
the entire index page will follow
many thanks
<?
session_start();
require("config/header.inc.php");
require("config/config.inc.php");
if (!$special_mode)
{
print("<p>$menu_ordinary");
}
require ("link_title.php");
if (!$kid AND !$special_mode)
{
print("<h2>$name_of_site</h2>");
print("<p>$welcome_message</p>");
}
?>
Complete index page
<?
session_start();
require("config/header.inc.php");
require("config/config.inc.php");
if (!$special_mode)
{
print("<p>$menu_ordinary");
}
require ("link_title.php");
if (!$kid AND !$special_mode)
{
print("<h2>$name_of_site</h2>");
print("<p>$welcome_message</p>");
}
?>
<p>
<?
include("catcol.php");
$frontpage=1;
include("links.php");
if (!$kid AND $latest)
{
require ("latest.php");
}
if ($kid)
{
print "</table>";
}
print("<p>");
if ($auto)
{
include("update.php");
}
require("config/footer.inc.php");
?>