Re: Passing Query String to Internet Explorer



header has to be executed before ANY bytes are sent to the browser.
Before <html>, and you can't even have a single blank before the first
<? or you get the message "headers already sent...", so you can't put
it in the same place in the code because if you are writing a <meta...>
then you've already sent the <htmL> and <head> to the broswer. Too late
to use header by then.

FWIW: I cut and pasted your code into a dummy php file and ran from my
host though my IE 6.0 and it worked fine. I'm assuming you did open and
close with <head>...</head>

But I'd still go with the header solution because it's not brower
sensitive.

--gary

.



Relevant Pages

  • RE: IE headers w patch level
    ... Why would you need to make that public in a HTML header.. ... browser the person is using to view in a site's stats what is the most ... patch being Q12461... ...
    (Focus-Microsoft)
  • Re: Dynamically generated HTML
    ... generates different content in HTML. ... > should be put into one document and passed back to the browser. ... My main script starts a buffer to ... resulting html header text back to the main program. ...
    (alt.php)
  • Re: using this IF to forward to page?
    ... A call to header() must be made before ANY output to the browser. ... includes your <html> tag, ... html tags. ...
    (comp.lang.php)
  • RE: "Page Cannot Be Displayed" error with IE XP SP2
    ... If you have this in your header and submit a POST from the page, ... Now a consistent browser would not let you ... > an HTTP response from the server. ... > with no custom settings. ...
    (microsoft.public.inetsdk.html_authoring)
  • Re: Questions about HTTP headers sent with PHP in HTTP authentication
    ... And how are status codes sent to the browser if not?? ... and 5.1.2 the header function now prevents more than one header to be ... server send multiple response messages to one request?] ...
    (comp.lang.php)