in reply to CGI Output in an excel file
That's because the HTTP headers end with the first blank line. If you start with a blank line, the server says "oh, that's the end of the headers: I'm going to assume this is just text, then". When the browser is told "this is text", it just displays it.
This is sort of like the old doctor joke: "Doctor, it hurts when I do this!" -- stop doing that. ;-)
|
|---|