Header information ...

From: Date: Fri, 10 Jan 2003 16:17:41 +0000
Subject: Header information ...
Groups: php.general 
Request: Send a blank email to php-general+get-131131@lists.php.net to get a copy of this message
Hello. I can't get this code to work. The error message I get is that the header could be added, cause it has allready been sent. What shalll I do to get it to work? //Anders <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) > 5)) { window.alert("Upgrade version of NS."); } else { document.write("<?php $i = 1 ?>"); } </script> <link rel='stylesheet' href='stil.css' type='text/css'> </head> <body> <br> <?php if ($i == 1) { Header("location:main.php"); } else { print("Byt webbl&auml;sare!"); } ?> </body> </html>

« previous php.general (#131131) next »