RE: Redirect - was Question: Simpler loop

From: Date: Fri, 22 Oct 2004 16:56:18 +0000
Subject: RE: Redirect - was Question: Simpler loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200104@lists.php.net to get a copy of this message
I put the loop at the top of the next page, before any output to the browser: <?php .................... if ($skill!='' && $skys[$key]!='' && $slus[$key] !='') { // row is valid -- do stuff } else { header("Location: http://www.2soon2show.com/TestMulti4a.php" ); print "You have errors"; } } ?> Before I added the redirect the print worked (and yes it doesn't belong in that part of the loop) Now the redirect is working , but the print isn't. Do I do an exit first, then the redirect and print ? Stuart

« previous php.general (#200104) next »