Re[2]: [PHP] weird header() (bug may be)
| From: | adwinwijaya | Date: | Thu, 12 Feb 2004 11:11:48 +0000 |
| Subject: | Re[2]: [PHP] weird header() (bug may be) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177498@lists.php.net to get a copy of this message | ||
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_page.php.
CS> So, even if you set it to to_another_page.php previously, you're
CS> overwriting it.
CS> Hope that helps.
CS> Chris
CS> =====
CS> Chris Shiflett - http://shiflett.org/
CS> PHP Security - O'Reilly
CS> Coming mid-2004
CS> HTTP Developer's Handbook - Sams
CS> http://httphandbook.org/
CS> PHP Community Site
CS> http://phpcommunity.org/
--> 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 ... I just know that I have to write location: with space
--> ... I am get used to do that for almost 1 year :)
--
Best regards,
adwinwijaya mailto:adwinwijaya@yahoo.com.au