I have written a simple web page which has a login HTML form to let you get into a CGI (.exe) part of the web page which accesses databases, etc. When you press the Submit button, the host runs the CGI program which decides whether to let you into the database.
I have stored the program in /cgi-bin which has execution enabled only and the databases are stored elsewhere.
The site works great with IE4.
If I use Netscape (4.5/4.7), when I press the submit button, the output of the CGI program is not displayed in the browser but instead you are offered a FileSave dialog. If you save the file (named by the name of the program executable) and open it, it contains the Body of the output of the CGI program! No headers, just the body tags and everything between.
I've tried various things including rewriting the simple page manually, using Dreamweaver to write it, used previously written web pages which sent form data to a Perl CGI program, but none of that works. I've also looked closely at the pages returned by other Internet CGI programs.
I don't know where the problem could be.
Surely it can't be that hard!
//Writeln('<!doctype html public "-//w3c//dtd html 4.0 transitional//en">');
//Writeln(' <META NAME="GENERATOR" CONTENT="Adobe PageMill 3.0 Mac">');
Writeln(' <META HTTP-EQUIV="CONTENT-Type" CONTENT="text/html; charset=iso-8859-1" />');
Any ideas? URL available if necessary but I don't want to broadcast it here.