I have created a simple form and after clicking the submit button the arguments have to pass in perl script.This is HTML code saved with form.html
<HTML> <BODY BGCOLOR="#FFFFFF"> <H1>Basic Form </H1> <FORM ACTION=\cgi-bin\process.pl METHOD=POST> Please Enter Your Name: <INPUT TYPE=TEXT NAME="name" LENGTH=30> <P> How do you like to be evaluated? <SELECT NAME = "choice" > <OPTION SELECTED> Quizzes <OPTION> Projects <OPTION> Tests </SELECT> <P> <INPUT TYPE=SUBMIT VALUE="Submit Form"> </FORM> </BODY> </HTML>
This is the perl script saved as process.pl
#!/usr/bin/perl use CGI qw(:cgi-lib :standard); &ReadParse(%in); $name = $in{"name"}; $preference = $in{"choice"}; print<<EOSTUFF; Content-type: text/html <HTML> <BODY BGCOLOR=WHITE TEXT=BLACK> <H1> Hello, $name </H1> You prefer $preference. <BR> EOSTUFF
I have kept these files in the same directory along with web config file.While running in IIS server, After the user inputs information, the form calls another CGI program called process.pl that uses the input and generatess another web page.I'm unable to call process.pl file.
Its giving the following error..HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
I can't understand where I have done mistake.Please help me out.
In reply to Error in IIS server for Perl script by Ekanvitha9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |