RE: [PHP-DB] problem with header()
| From: | Bastien Koert | Date: | Thu, 05 Oct 2006 01:25:27 +0000 |
| Subject: | RE: [PHP-DB] problem with header() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42485@lists.php.net to get a copy of this message | ||
mosts likely you have html output in the page somewhere, perhaps in the includes or it could be a blank space in one of the files that is above and outside the php tags
Bastien
From: j.kuehne@sign-tronic.ch To: php-db@lists.php.net Subject: [PHP-DB] problem with header() Date: Wed, 4 Oct 2006 07:40:54 +0000 Hi I can not submit any header() information in the following context. What is wrong within the code? <?php require_once "includes/db.inc"; require_once "HTML/Template/ITX.php"; if (!($connection = @ mysql_connect($hostname, $username, $password))) die("Could not connect to database"); $status = mysqlclean($_GET, "status", 1, $connection); $template = new HTML_Template_ITX("./templates"); $template->loadTemplatefile("form2tpl.tpl", true, true); $template->setCurrentBlock("success"); $template->setVariable("AUTOR", $_REQUEST["autor_eb"]); $template->setVariable("STICHWORT", $_REQUEST["stichwort_eb"]); $template->setVariable("DATUM", $_REQUEST["datum_eb"]); $template->setVariable("ANLAGE", $_REQUEST["anlage_eb"]); $template->setVariable("PROBLEM", $_REQUEST["problem_eb"]); $template->parseCurrentBlock(); $template->show(); session_start(); foreach($_POST as $Key => $Value) { $_SESSION[$Key] = $Value; } if ($_POST['submit'] == "Eintrag Bearbeiten"){ header("Location: http://127.0.0.1/www2/knowledge_db/knowbase02.php"); exit; } ?> Best regards, Joerg Kuehne