"File Not Found" error
Posted on 2000-04-23
I am currently working on a PERL CGI prorgam that works of a Linux Mandrake server. Prior to adding anything having to do with input to it, I was able to get it to output the correct stuff to the browser. Now, however, I only get a "The page cannot be displayed" on my browser.
I have already checked the error_log file. in it it both says that the file does not exist (It does too exist!) and that there is a premature end of the script <name of file>.
I have already performed chmod 777 <filename> several times over, so I don't think that is the problem.
I have thrown a test CGI program onto the server and am getting the same error. If I can only figure out what the problem is, I can fix it. Otherwise, all of my work is seeming to be futile. The test code that is doing this to me is as follows:
<form action="/cgi-bin/test.cgi" method="GET" name="matrix">
CPSC <input type="checkbox" name="cpsc" value="1"><br>
A's <input type="checkbox" name="as" value="1"><br>
Seniors <input type="checkbox" name="seniors" value="1" checked><p>
<input type="submit" value="Enter Info">
use CGI qw (param);
$seniors = param("seniors");
print "Content-type: text/html\n\n";
Thanks to anyone who can help.