Mitch
New Member
- Messages
- 908
- Reaction score
- 0
- Points
- 0
I use this navigation script
Only the problem is when one page does not exist , it will show the default page.
Can some one make a error page when these pages does not exist
<?php
$page = $_GET['page'];
if ( !empty($page) && file_exists('' . $page . '.php') && stristr( $page, '.' ) == False )
{
// pages = directory where you store your pages
$file = '' . $page . '.php';
}
else
{
// home.php = default page
$file = 'home.php';
}
include $file;
//
?>
Only the problem is when one page does not exist , it will show the default page.
Can some one make a error page when these pages does not exist