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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.