fndanielnl
06-01-2007, 04:03 PM
What i want is that links to an other php page not are of index.php to info.php but of index.php to index.php?page=info.php
The fellowing script is doing that: (index2.php is the main page)
<?php
if($_GET['page']=='info')
{
include('info.php');
}
else
{
include('index2.php');
}
?>
But when i add a second page on the same way as info.php he does not only display the second page but also index2.php.
How can i fix this. I have allready tried a lot of things but i am not very good whit php scripts!
The fellowing script is doing that: (index2.php is the main page)
<?php
if($_GET['page']=='info')
{
include('info.php');
}
else
{
include('index2.php');
}
?>
But when i add a second page on the same way as info.php he does not only display the second page but also index2.php.
How can i fix this. I have allready tried a lot of things but i am not very good whit php scripts!