RE: Redirect - was Question: Simpler loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux