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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php