|
Posted by VS on 09/26/06 09:41
Frits van Leeuwen wrote:
> I call from index.php this file: (Taal_nl)
>
> <?php
> setcookie("LeeuwendeelTaal", "nl", time()+3600*24); // 1 dag
> echo "Cookie is: ". $_COOKIE["LeeuwendeelTaal"] . '<br>';
> echo "Cooke is: ". $LeeuwendeelTaal;
> header('Location: http://www.Leeuwendeel.info/index.php');
> exit;
> ?>
You can't set a Header after you have sent any page content.
You may achieve what you want using 'index.php' with:
<?php
setcookie("LeeuwendeelTaal", "nl", time()+3600*24); // 1 dag
header('Location: http://www.Leeuwendeel.info/main.php');
?>
Then simply put the rest of the initial page in 'main.php'
--
VS
Navigation:
[Reply to this message]
|