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

2004-02-12 Thread Chris Shiflett
--- adwinwijaya <[EMAIL PROTECTED]> wrote: > 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 This might make sense to you, but only because you're thinking of header() as a redirect

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[3]: [PHP] weird header() (bug may be)

2004-02-12 Thread Richard Davey
Hello adwinwijaya, Thursday, February 12, 2004, 11:11:48 AM, you wrote: -->> because in my logic ... after sending the (redirect) to another -->> page .. the process shall be stopped In PHP's logic however, it doesn't stop :) (Unless you tell it to by either using an exit() call or just making

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

2004-02-12 Thread adwinwijaya
Hello Chris, Thursday, February 12, 2004, 5:57:55 PM, you wrote: CS> Nope. As others have pointed out, your Location header is improperly CS> formed. CS> However, your immediate problem is that, regardless of whether $foo == CS> 'something', you *always* set the Location header to to_previous_pag

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_

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

2004-02-11 Thread adwinwijaya
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