Re: [PHP] weird header() (bug may be)

2004-02-12 Thread Marek Kilimajer
adwinwijaya wrote: 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

Re: [PHP] weird header() (bug may be)

2004-02-12 Thread Marek Kilimajer
adwinwijaya wrote: --> ok guys ... thanks for your answer and my another question --> why the php didnt stop processing after sending the header ? --> because in my logic ... after sending the (redirect) to another --> page .. the process shall be stopped and thanks for your --> advise .

Re: [PHP] weird header() (bug may be)

2004-02-11 Thread Chris Shiflett
--- adwinwijaya <[EMAIL PROTECTED]> wrote: > 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 redi

Re: [PHP] weird header() (bug may be)

2004-02-11 Thread joel boonstra
On Thu, Feb 12, 2004 at 05:20:29PM +1100, adwinwijaya wrote: > 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_