PDA

View Full Version : [php]Where comes this "1" from?



p_stevens
October 15th, 2004, 05:49 AM
Hey all,

I am making a site, and a made a php code, but when i test it there will appear a 1 at the bottom of the page that i didn't put there. I've checked the code but can't find it....

Here is the code of the index:



<body>
<?php include('header.php'); ?>

<?php
$pagina = "" .strtolower($_GET['page']).".php";
if (file_exists($pagina))
{
echo include($pagina);
}
else
{
echo include('home.php');
}
?>
<?php include('footer.php'); ?>
</body>


And if you want to look at the site its over here:
www.intermediamakers.nl/test/fakkert/index.php

So thanks for helping.
Greetz

amitgeorge
October 15th, 2004, 06:16 AM
<body>
<?php include('header.php'); ?>

<?php
$pagina = "" .strtolower($_GET['page']).".php";
if (file_exists($pagina))
{
include($pagina);
}
else
{
include('home.php');
}
?>
<?php include('footer.php'); ?>
</body>

dont use echo with include.

p_stevens
October 15th, 2004, 06:17 AM
Thanks man :D