Netscape spewing my html text out with all of its html tags exposed almost certainly means that the content type of your script's output is being set to text/plain, not text/html. If you don't set the content-type yourself then the web server may set it for you: afair the mime_magic module does this on the basis of filename.