rseni has asked for the wisdom of the Perl Monks concerning the following question:

HI,

I am newbie to web-designing and trying to to configure NMS formmail step-by-step as shown on http://www.ironspider.ca/forms/nmsform.htm on a local XAMPP installation.

PATH TO CGI-BIN: E:\E:\xampp\cgi-bin Path to Perl: E:\xampp\perl\bin\perl.exe Path to SendMail : E:\xampp\sendmail\sendmail.exe PATH to feedback form: http://127.0.0.1/xampp/form.html

CODE OF FORM.HTML
-----------------
<html> <head> <title> Form Function Test</title> </head> <body>

This is a simple form

<form action="E:\xampp\cgi-bin\FormMail.pl" method="POST">

First Name <input type="text" name="fname" />

Last Name <input type="text" name="lname" />

E-Mail       <input type="text" name="email" />

Pls Enter Your Comments:
<textarea name="comm" rows="10" cols="30"></textarea>

<input type="submit" value="Submit Feedback" /> </form> </body> </html>

When i hit submit Firefox gives me an error "Firefox does not know how to open this address because the protocol isn't associated with any program.

When i run the localhost\cgi-bin\FormMail.pl in Google Chrome it provides the following Error:

GET request The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.

If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">

FormMail © 2001-2003 London Perl Mongers ------------------------------------------------------------------------------------------------------------------------

Pls help me resolve this error.

Thanks for your kind suggestion and time.

Replies are listed 'Best First'.
Re: Path to Perl on local web host
by ikegami (Patriarch) on Aug 21, 2009 at 14:42 UTC

    Firefox does not know how to open this address because the protocol isn't associated with any program.

    As it should. E:\xampp\cgi-bin\FormMail.pl is not a valid URL. Or if it is, it's for some non-existant scheme "E". If you want a URL to a local file, you can use

    file:///E|/xampp/cgi-bin/FormMail.pl

    (Convert the path by adding a leading "/", using "/" instead of "\", and using change "|" instead of ":". The precede the whole thing with "file://".)

    Note that this won't get you much further. A CGI script is meant to be executed, not displayed. You need to use a web server, and it must be configured to execute the CGI script in response to the URL you use.

      use URI::file; print URI::file->new( qw[ E:\xampp\cgi-bin\FormMail.pl ]); __END__ file:///E:/xampp/cgi-bin/FormMail.pl
      E| is outdated
Re: Path to Perl on local web host
by Anonymous Monk on Aug 22, 2009 at 00:18 UTC
    Look here, you'll find this, the reason is Apparently we have an anti spam filter running silently on the backend to change any post request to obvious formmail scripts to get requests.

    That is really insane.