PERL/CGI ERROR

Peter Amisano pamisano at kc.rr.com
Wed Jan 29 19:59:58 CST 2003


Perl resides in /usr/bin/perl
the script is as follows:

#!/usr/bin/perl
#Peter Amisano pamisano at kc.rr.com
#CIS 410 Web Development

require "project3.lib";
&Parse_Form;

print "Content-type: text/htmlnn";
print "<html><head><title>Enter Password</title>";
print "<script language='JavaScript' type='text/javascript'>";
print "function validate(){";
print "var pword; pword=prompt('Enter Password');";
print "if
(pword!='P6C410V'){location.replace('/perlstuff/project6/wrong.html');}";
print "else
location.replace('/cgi-bin/validated.cgi?report=$formdata{'report'}&class=$formdata{'events'}');}";
print "</script></head>";
print "<body onload='validate()'></body></html>";

I am using the lib file in other scripts so I know it works.  This file
works on a windows box running the Abria Merlin Server (Apache, Perl, Mysql,
PHP all in one)
But I can't seem to get this one script to work on my linux box.  I am
transferring it via FTP, chmod 777 and it still does not work.

--
There's a war out there, old friend. A world war. And it's not about who's
got the most bullets. It's about who controls the information.

________________________________________________
Message sent using UebiMiau 2.7.2




More information about the Kclug mailing list