Re: Passing Query String to Internet Explorer



The problem is solved ..
I verified the html with w3c and a closing form tag was in the middle.
Internet explorer did not know how to interpret it so stopped, but Firefox
did not seem to be bothered.
I did modified the code to use header() instead.
Thank you for your input.

"fiziwig" <fiziwig@xxxxxxxxx> wrote in message
news:1143420385.151307.220460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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: Use LabVIEW to login username and password into device IP webpage login prompt
    ... The 2 main methods are where the page will cause your browser to pop open a standard internet explorer password box or the page will have a custom form within its html. ... I guess if you always just sent that header on each request it will probably work. ... With both of these types of web login its normal for them to return a cookie - which is just a string in the header, they will expect this to be sent back in the header on each subsequent page request so they still know who you are.  ...
    (comp.lang.labview)
  • Re: Grey logos in letterheads
    ... If you really need the rationalisation, it is/was this: ... from which both HTML and XML protocols sprang: ... header and leaving it up to the recipient device to figure it out. ...
    (microsoft.public.mac.office.word)
  • Re: Grey logos in letterheads
    ... small comment--actually, both of my points came about because people constantly post about both those problems on the general Word groups, not here. ... I was trying to write an explanation to defend the lost headers in HTML to someone over there when I realized there was no way I could rationalize it. ... user can edit it and it can have a running header on each page. ...
    (microsoft.public.mac.office.word)
  • Re: Diacritical marks in array dont translate
    ... >>> encoding you specified in your HTML. ... > header transmitted by a server. ... MUST or MAY allow the Content-Type header to be overridden by the `meta' ... There are used UAs out there which does not support Unicode, ...
    (comp.lang.javascript)
  • Re: CGI scripts and MSIE
    ... Last night I put a perl script into my cgi-bin directory and gave it ... I would guess that you haven't specified in the HTML what the contents ... Most likely the other browsers have defaulted to text/html, ... What you need to do is add a header to the HTML you send back saying ...
    (uk.comp.os.linux)