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

2004-02-12 Thread Richard Davey
Hello Jason, Thursday, February 12, 2004, 6:38:05 AM, you wrote: It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); JW Also it should be an absolute URL otherwise it might break on some (standards JW compliant only) browsers: While I totally

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

2004-02-12 Thread adwinwijaya
Hello Eric, Thursday, February 12, 2004, 10:57:57 PM, you wrote: EB That's pretty wierd EB Think i'll do some research on headers, need more info anyway ;) EB But did my tip work in your script when you took a space there? EB Just wondering... EB Eric No it still doesnt work ... I have

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

2004-02-12 Thread Richard Davey
Hello adwinwijaya, Thursday, February 12, 2004, 12:27:07 PM, you wrote: a In my logic, after we call header('location: foo.php'); the php a processor should terminated and open the page foo.php instead ... Except that doesn't happen. See my other reply on this subject. -- Best regards,

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

2004-02-12 Thread memoimyself
On 12 Feb 2004 at 17:20, 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

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

2004-02-12 Thread Anil Kumar K.
This is not a bug. Here you expect that the script should end executing after the statement:header('Location:to_another_page.php') if the if statement is true. But it won't and it proceeds to the next statement; the next header statement:header('Location:to_previous_page.php'); An exit statement

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

2004-02-11 Thread Eric Bolikowski
Headers have to be pretty accurate, or it will cause trouble. And your redirect header is not quite correct. It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); What you need here is a space between Location: and the URL. Adwinwijaya [EMAIL

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

2004-02-11 Thread Jason Wong
On Thursday 12 February 2004 14:40, Eric Bolikowski wrote: Headers have to be pretty accurate, or it will cause trouble. And your redirect header is not quite correct. It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); What you need here is a