note 92289 deleted from function.header by danbrown

From: Date: Fri, 17 Jul 2009 19:19:03 +0000
Subject: note 92289 deleted from function.header by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158427@lists.php.net to get a copy of this message
Note Submitter: cpokli at gmail dot com ---- It's given in the manual that before the header() nothing should have been output,but Strangely in my (php version 5.2.6) script , I use header() after outputting some HTML but still works fine for me !!! <form method="post" > username = <input name="username" type="text" /> <input type="submit" /> </form> <?php $username = $_POST['username']; if($username == root) { header("Location:adminpage.php"); } ?> This works 100% good for me !!!

« previous php.notes (#158427) next »