Fejlen ser således ud:
Warning: Cannot modify header information - headers already sent by (output started at /customers/sebdesign.dk/sebdesign.dk/httpd.www/new.php:22) in /customers/sebdesign.dk/sebdesign.dk/httpd.www/doc/kontakt.php on line 56
De linjer det drejer sig om er præsenteret for overskulighedensskyld. Håber det giver mening.
news.php (22+23)------------
<?php
include ("dbconnect.php");
include ("variabler.php");
$page=$_GET[page];
if ($page=="") { $page="forside"; }
$re = mysql_query("SELECT * FROM $sitemenu WHERE page='$page'") or die ("Could not connect to the Database");
while ($hent=mysql_fetch_array($re)) {
$header=$hent['name'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<title>Sebdesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body bgcolor="#EDEDED" marginheight="0"> (her er fejlen)
<table align="center" cellpadding="0" cellspacing="0" border="0" class="text">
kontakt.php ()-----------------
Efter at have tilføjet noget i en database skriver jeg følgende
header('location:new.php');
exit;