# PHP Issue! Receiving errors for ages!

**URL:** <https://forum.kirupa.com/t/php-issue-receiving-errors-for-ages/287007>\
**Category:** Uncategorized\
**Created:** [April 24, 2009, 1:11pm UTC](https://forum.kirupa.com/t/php-issue-receiving-errors-for-ages/287007 "2009-04-24T13:11:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nnjaa](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@Nnjaa](https://forum.kirupa.com/u/Nnjaa)\
**Post date:** [April 24, 2009, 1:11pm UTC](https://forum.kirupa.com/t/php-issue-receiving-errors-for-ages/287007/1 "2009-04-24T13:11:25Z")

</div>

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()+60_60_24\*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
