non mi funziona la funzione header, mi da sempre un errrore
Warning: Cannot add header information - headers already sent by (output started at c:\programmi\apache group\apache\test\sito\admin\index1.php:10) in c:\programmi\apache group\apache\test\sito\admin\index1.php on line 13
questo é il mio codice (index1.php)
<html>
<head>
<title></title>
</head>
<body>
<font size="5" face="Arial, Helvetica, sans-serif">
<?
if ($nomeutente != "nomeutente" || $password != "password"){
echo "I dati inseriti non sono corretti";
header( "Location: http://localhost/sito/admin/index.php");
}
else
echo "TESTO DELLA MIA PAG";
?>
</font>
</body>
</html>
le righe in grassetto seono le righe 10 e 13