in reply to [untitled node, ID 212629]

You need to send back the HTTP header before sending any HTML. You may be doing this but it isn't happening for the code path that prints the secondary pages. Specifically, you need to set Content-Type header to text/html. Otherwise, Apache sets the default to text/plain which is what is showing up on your link above. The easiest way to do this is with the CGI.pm module's header method.
use CGI; print header;

IE is broken and recognizes the document is HTML and displays it as a web page. Mozilla is behaving properly and shows the HTML as plaintext like the server told it to.

Replies are listed 'Best First'.
Re: Re: Unexpected "text/plain" output with cgi
by giulienk (Curate) on Nov 13, 2002 at 17:52 UTC
    I guess you meant something like
    use CGI qw(:standard);
    Otherwise the header function won't be exported into your namespace.


    $|=$_="1g2i1u1l2i4e2n0k",map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g