My header location fails to work on a server wich uses php 5.3.21. It does work on a localhost with 5.4.7. It is backwards compatible.. can anybody tell my why this is wrong?
switch ($table) {
case "hardcover":
header('location:hardcover.php?type=Aanvraag&relID='.$relID.'');
break;
}
It is part of a switch case that decides where to go after you have entered a certain value from a HTML option list. When i echo $relID
, and $table
in the same case, it does echo the items. But somehow it wont redirect to the header..
Result from: ini_set("display_errors", "On");
Warning: Cannot modify header information - headers already sent by (output started at /customers/f/f/e/tdmdev.nl/httpd.www/graficrm/htmlheader.php:7) in /customers/f/f/e/tdmdev.nl/httpd.www/graficrm/aanvradd.php on line 47
Line 47 is the line where the header is located. Line 7 is where a session is echoed into html title area.