Syntax for running formmail.pl from a Dreamweaver 8 website form
Hi,
I setup a form in Dreamweaver 8 so users could email me contact information--however I can't seem to get the script
to run. Looking on the web, it was recommended to use a perl script called formmail.pl
My web hosting is with yahoo. Their website says they support perl, and there is no cgi bin needed to be
referenced. Below is the instruction they gave.
The path to Perl is /usr/bin/perl.
Perl scripts generally start with a "Perl directive," or the path to Perl. The web server's operating system reads the beginning of every script and looks for this directive, which looks like this:
#!/usr/bin/perl
We strongly recommend that you use this directive on the first line of all Perl scripts. The directive is required to pass parameters to Perl such as –w (or "warning"), which will add additional details to your log file to help you troubleshoot your scripts. Here is an example of a Perl directive with -w:
#!/usr/bin/perl -w
The Perl directive also allows your script to run in most server environments, ensuring portability should you need to reuse your scripts on another site.
My question is, what is the syntax within the form action field to execute this script? I though it was http://websitename.com/usr/bin/perl/formmail.pl however I get a page not found error when I click the submit button.
Any help would greatly be appreciated!
Thanks!
