Hello php-generaler's ,

  I have a script like this :

  if($foo == 'something'){
          header('Location:to_another_page.php') ;
  }else
  {
       do another thing in here
  }

  header('Location:to_previous_page.php');


  I got a problem ... when $foo == 'something' .. it wont redirect me
  to to_another_page.php .... but if I put die(); after calling
  header(); .. it will work ...

  is this the bug ?

  I use php 4.3.4 ... and Apache 2.x

  thanks
  

-- 
Best regards,
 adwinwijaya                          mailto:[EMAIL PROTECTED]

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

Reply via email to