header location doesnt work in php 5.3.21 -



header location doesnt work in php 5.3.21 -

this question has reply here:

how prepare “headers sent” error in php 11 answers

my header location fails work on server wich uses php 5.3.21. work on localhost 5.4.7. backwards compatible.. can tell why wrong?

switch ($table) { case "hardcover": header('location:hardcover.php?type=aanvraag&relid='.$relid.''); break; }

it part of switch case decides go after have entered value html alternative list. when echo $relid, , $table in same case, echo items. somehow wont redirect header..

result from: ini_set("display_errors", "on");

warning: cannot modify header info - headers sent (output started @ /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 line header located. line 7 session echoed html title area.

try ob_start() @ origin of page.

php header location switch-statement

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -