Hi!
Your code looks OK.
What you need is a LOCAL web server installed on your computer (please note
that a web server is SOFTWARE, basically). You can get, e.g., Apache for
many platforms, including all Windows versions, at www.apache.org . Then,
you need a Perl interpreter, too. For Windows, ActivePerl seems the best
distribution to me. It's available at www.activestate.com .
If you have these two components installed and set up properly (they come
with a lot of documentation so you should spend some rainy Sunday afternoon
reading ;-)), you can access your HTML page and script via http://127.0.0.1
and not via file:/... any more!
Hope that helps
Sascha
----- Original Message -----
From: "Prachi Shroff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 4:13 PM
Subject: running CGI on a stand alone machine
> Hi,
>
> I have a perl script and designed a simple web page for its front
> end.......but this package is running on a single machine and not
connected
> to any server. when the form on the HTML page is submitted, it should run
> the perl script specified in the ACTION field of the form. Now, the
problem
> is, when I submit the form it shows the code of the perl script instead of
> running the script and showing results.
>
> I think I am missing something......can anyone help?
>
> thanks,
> Prachi
>
> Below is the HTML code.......am I missing something?
>
>
>
> <html>
>
> <head>
>
> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
> <title>New Page 1</title>
> </head>
>
> <body>
>
> <form ENCTYPE="multipart/form-data" method="post" action="try.pl">
>
> <h1 align="center"><font color="#000080" size="7">The Automated Blast
> Page</font></h1>
> <hr>
> <p><br>
> </p>
> <p> </p>
> <p><font size="5">Please enter the file name of the query where all
> sequences are stored :</font></p>
> <p><input type="file" name="query"
size="37"> </p>
> <p> </p>
> <p> </p>
> <p><font size="5">Enter the list of species that you would want your
> search to
> focus :</font></p>
> <p><textarea rows="12" name="list" cols="41"></textarea></p>
> <p> </p>
> <p><font size="5">Enter the path of the folder where the results are to
be
> stored :</font></p>
> <p><input type="file" name="results"
> size="37"> </p>
> <p> </p>
> <p><input type="submit" value="Submit" name="submit">
> <input type="reset" value="Reset" name="reset"></p>
> </form>
>
> </body>
>
> </html>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>