Hello,
I have a problem with including pages using the next script:
if($page == ""

{
include("home.php"

;
}
else
{
if(file_exists("$page.php"

)
{
include("$page.php"

;
}
else
{
include("404.php"

;
}
}
when I browse the index.php for the first time he includes the home.php file without any problem. But when I click on a link wich defines the include variable $page it refuses to work and uses the default page because he thinks its an empty variable.
Does anyone have a solution!? Or is there somthing I have to change in a configfile?
With kind regards,
Douwe Hoogeveen
Netherlands