Possible Duplicate:
“Warning: Headers already sent” in PHP
<?php
session_start();
$_SESSION['page'] = "test.php";
echo "Page to load in iframe = ". $_SESSION['page'];
setcookie('PagetoShow', $_SESSION);
if(isset($_COOKIE['PagetoShow']))
$Page = $_COOKIE['PagetoShow'];
echo "Page to load in iframe = ". $Page;
else
$Page="welcome.php"
?>
I guess it is a syntax error, but I know too little or nothing php to find it. What is wrong?