...

View Full Version : php help



renik
10-27-2007, 07:14 PM
$file = 'nav/video.php';
if(isset($_GET['idn']))
{
$idn = basename(trim($_GET['idn']));
if(is_readable('nav/' . $idn . '.php'))
{
$file = 'nav/' . $idn . '.php';
}
}
include $file;


i linked the video page right it works now on the video.php i have a navigation too and i want that navigation that is on the video page to to wok open with in the layout and i used the same script as in the index.php but not working

anyone can help

mic2100
10-27-2007, 10:30 PM
here try this



$file = 'nav/video.php';
if(isset($_GET['idn']))
{
$idn = basename(trim($_GET['idn']));
if(is_readable('nav/' . $idn))
{
$file = 'nav/' . $idn;
}
}
include $file;


u don't need to include the extension on the $idn file



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum