Hey guys!
Im new here, and sorry to post an error as my entry. Anyways, I receive the error:
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web1/43/49/51631049/htdocs/ffb2009.php:9) in /mnt/web1/43/49/51631049/htdocs/include/header.php on line 14
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web1/43/49/51631049/htdocs/ffb2009.php:9) in /mnt/web1/43/49/51631049/htdocs/include/header.php on line 15
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web1/43/49/51631049/htdocs/ffb2009.php:9) in /mnt/web1/43/49/51631049/htdocs/include/header.php on line 16
It says that there are errors on lines 14, 15, and 16. See below the correspond .php file:
Alright, the items listed in BOLD are the corresponded lines (14, 15, and 16, from 14 to 16)
<?php
ob_start();
//Hoe lang de bezoeker mag ingelogged blijven:
$expiredate = time()+606024*7; //ingesteld op 1 week
if ($logout == 1)
{ setcookie(‘username’);
setcookie(‘passgecodeerd’);
header(‘location:ffb2009.php’);
exit;
}
if ($_POST[‘username’] && $_POST[‘password’])
{ setcookie(‘username’,$username,$expiredate);
setcookie(‘passgecodeerd’,$passgecodeerd,$expiredate);
header(‘location:$_SERVER[REQUEST_URL]’);
exit;
// password coderen
$passgecodeerd = md5($_POST[‘password’]);
$username = $_POST[‘username’];
}
$controle == FALSE;
$level = 1;
$jeid = ‘’;
include (‘login.php’);
$controle = password($username, $passgecodeerd);
if ($controle == TRUE)
{ $query = “SELECT * FROM members where id=‘$jeid’”;
$resultaat = mysql_query($query) or die (mysql_error());
while ($obj = mysql_fetch_object($resultaat))
{ $nickname =‘$obj->nickname’;
$jeid=‘$obj->id’;
$level=‘$obj->level’;
}
include (‘config.php’);
}
if ($_POST[‘Login’] && $controle == TRUE)
echo ‘Je bent succesvol ingelogged’;
elseif ($_POST[‘Login’] && $controle != TRUE)
echo ‘Fout wachtwoord en/of gebruikersnaam’;
?>
<?php
$begin_table_header = “<table width=‘950’ border=‘0’ height=‘170’ cellpadding=‘0’ cellspacing=‘0’><tr><td id=‘header’>”;
$end_table_header = “</td></tr></table>”;
echo $begin_table_header."
<?php
if ($controle != TRUE)
{ ?><form method=‘post’ action=‘’>
<table width=‘100%’ border=‘0’ cellspacing=‘0’ cellpadding=‘0’>
<tr><td>Username:</td></tr>
<tr><td><input type=‘text’ name=‘username’></td></tr>
<tr><td>Password:</td></tr>
<tr><td><input type=‘password’ name=‘password’></td></tr>
<tr><td><input type=‘submit’ value=‘Login’ name=‘Login’></td></tr>
</table>
</form>
<?php
} elseif ($controle == TRUE) {
echo ‘Welkom $jenickname’;
} ?>
“.$end_table_header.” ";
?>
Please help me with this! I can’t find the solution anywhere! I know people are saying stuff like, header this head that. I know! But I still can’t find a solution for this!
Will you be my saviour?
Thanks in advance,
Nnjaa