karinsch: response.redirect

Beitrag lesen

Hi Romy!

Ich bekomm da diese Fehlermeldung:

Warning: Cannot add header information - headers already sent by (output started at /www/domain.at/seite.php:25) in /www/domain.at/seite.php on line 28

So sieht meine programmierung aus (ab line 25):

<?php
if ($wert1== "blabla")
{
 header("location: http://www.domain.at?wert=hallo");
}
else
{
 header("location: http://www.domain.at?wert=test");
}
?>

Danke, lg Karin!