Re: Problem with Redirect

From: Date: Fri, 16 Feb 2007 09:49:44 +0000
Subject: Re: Problem with Redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248951@lists.php.net to get a copy of this message
Hi! Ashish Rizal escribió: > Hi friends, I am having problem with following code. > I have actually made the whole code on same page (login.php) and > the functions that i used in > this code are in functions.php. Now this time it is showing the > warning : > Warning: Cannot modify header information - headers already sent > by (output started at C:\Program > ... > $accesslevel = accessLevel($UserName); > ?> > <?php > if ($accesslevel == "admin"){ > ... > ANy help would be highly appreicated. Thanks There is a "\n" between the "?>" and the "<?php" that is causing the warning. You cannot send any output before all the headers. You don't need that "?>" followed by "<?php" because this makes no sense so delete it. Greetings from Spain! -- David Blanco - Programación y sistemas Publicinet (Publicidad-Cine-Internet, S.L.) Urzaiz, 71, entlo, izda. -- 36204 Vigo Telf 902.014.606 -- http://www.publicinet.net

« previous php.general (#248951) next »