php-general | 2001092
Date: 09/26/01
- Next message: Dave VanAuken: "[PHP] sending multiple variables to external PERL script for results"
- Previous message: pierre-yves: "[PHP] header() confusion"
- In reply to: pierre-yves: "[PHP] header() confusion"
- Next in thread: pierre-yves: "Re: [PHP] header() confusion"
- Reply: pierre-yves: "Re: [PHP] header() confusion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<Original message>
From: pierre-yves <pylem <email protected>>
Date: Wed, Sep 26, 2001 at 08:41:24AM -0400
Message-ID: <007301c14688$8d9b0d10$0100a8c0 <email protected>>
Subject: [PHP] header() confusion
> Hello,
> several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the header() function would simply not redirect if
> you don't put exit() right after the header() call. Now I'm discovering that header() does not work under netscape 6 if you put
> exit() right after!
>
> How come this function is so dependant of the client? How can I avoid all this mess? Has anyone experience this?
>
> py
</Original message>
<Reply>
It's not dependent on the client. The script just simply doesn't
stop after header(). It's just a bit strange that it worked with
some other browsers. Everything after header() will just be executed
until:
- an error occurs
- the script reaches the end
- exit;
So... when redirecting the user to a different page, you should
always put exit after the header() call.
</Reply>
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze <email protected> -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dave VanAuken: "[PHP] sending multiple variables to external PERL script for results"
- Previous message: pierre-yves: "[PHP] header() confusion"
- In reply to: pierre-yves: "[PHP] header() confusion"
- Next in thread: pierre-yves: "Re: [PHP] header() confusion"
- Reply: pierre-yves: "Re: [PHP] header() confusion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

