in reply to RE: Re: Working for IE
in thread Working for IE, not Netscape

You need to return the content-type in the HTTP header somehow, whether through CGI.pm's header() method, or by printing it:
print "Content-Type: text/html\n\n";
That's the canonical way you'll see it written. This has to be the first thing out of your script, though, as anything after the two newlines (technically something like \012\015\012\015) will be displayed in the browser.

Replies are listed 'Best First'.
RE: RE: RE: Re: Working for IE
by Anonymous Monk on Jun 15, 2000 at 07:34 UTC
    That's what I thought you might refer to, sorry I'm new to posting in here. This may not come thru great but here is the beginning of my frontpage.pl script; #!/usr/local/bin/perl BEGIN{unshift(@INC,"/usr/local/www/htdocs/pcworldlinks/cgi-bin/")}; use Cart; $path="/usr/local/www/htdocs/pcworldlinks/cgi-bin/DIST/"; %ele=Cart::cgiparse; if(!($ele{dist})){$dist=$ENV{'QUERY_STRING'};}else{$dist=$ele{dist};} %var=Cart::get_client($dist,$path); print "Content-Type: text/html\n\n"; print <<"EOF"; then my html code and ends with EOF } Does this look right? Thanks for the help.