The following error message appears when I access my cgi file via the browser. I am noting the ff steps I have done and the existing system conditions.
"%1 is not a valid Win32 application. "
1. I created html file that calls cgi script via this line of code ->
<FORM METHOD=post ACTION="/scripts/webexample.cgi">
2. Perl has been installed together with the module (Mail::SendMail) needed on machine that has IIS.
3. I have directed the admin to set up IIS to allow the execution of the cgi script that has been written in perl. The instructions were from
Sample of my cgi script:
#!c:\Perl\libuse CGI;
use Mail::Sendmail;
unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , 'smtpout.na.nykline.com';
$q = new CGI;
#$name = $q->param('name');
#$address = $q->param('address');
$address = "bcicsuci\@yahoo.com";
$user_location = $q->param('user_location');
$Question_1 = $q->param('Question_1');
print "Content-type:text/html\n\n";
print <<END_OF_MESSAGE;
<html>
<body>
<title>Thank You Page</title>
<h1>Thank you for filling out my form</h1>
Thank you for filling out my form.
</body>
</html>
END_OF_MESSAGE
4. The cgi script runs properly via the command line.
5. I had a friend of mine use my code and everything went fine for the html file and the cgi script.
Anyone have an idea about what could be wrong with the server set up on the machine hosting my files?
Thanks.
"%1 is not a valid Win32 application. "
1. I created html file that calls cgi script via this line of code ->
<FORM METHOD=post ACTION="/scripts/webexample.cgi">
2. Perl has been installed together with the module (Mail::SendMail) needed on machine that has IIS.
3. I have directed the admin to set up IIS to allow the execution of the cgi script that has been written in perl. The instructions were from
Sample of my cgi script:
#!c:\Perl\libuse CGI;
use Mail::Sendmail;
unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , 'smtpout.na.nykline.com';
$q = new CGI;
#$name = $q->param('name');
#$address = $q->param('address');
$address = "bcicsuci\@yahoo.com";
$user_location = $q->param('user_location');
$Question_1 = $q->param('Question_1');
print "Content-type:text/html\n\n";
print <<END_OF_MESSAGE;
<html>
<body>
<title>Thank You Page</title>
<h1>Thank you for filling out my form</h1>
Thank you for filling out my form.
</body>
</html>
END_OF_MESSAGE
4. The cgi script runs properly via the command line.
5. I had a friend of mine use my code and everything went fine for the html file and the cgi script.
Anyone have an idea about what could be wrong with the server set up on the machine hosting my files?
Thanks.