Re: Header information ...

From: Date: Fri, 10 Jan 2003 16:35:13 +0000
Subject: Re: Header information ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131140@lists.php.net to get a copy of this message
Should look like this: Anders Mellström wrote:
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 <?php if ($i == 1) { Header("location:main.php");
                                   exit;
} else { //print("Byt webbl&auml;sare!"); -- displayed later } ?><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> Byt webbl&auml;sare! </body> </html>


« previous php.general (#131140) next »