Simple Response Form Script
Introduction
This Perl script allows users of a Web site to send comments to specific email address. The front end to
the script is a form that is contained on the HTML page that
you'd like to gather comments about. The form calls the Perl script, message.pl which sends
the email message and returns a confirmation HTML page to the sender.
The script has been modified so that a copy of the comments is sent to
the user. To see the form and script in action click on the link below.
Example response form.
Script Operation
This Perl script was adapted from Form-mail.pl created by by Reuven M. Lerner (reuven@the-tech.mit.edu)
and is fairly self-explanatory. There are a couple of variables that will
need to be changed to reflect the specifics of your www site. The first
of these is $mailprog, which refers to the command line mail program on
your www site. After this variable there are some identifiers that refer to
specific page names on your website. These variables customize the
headings and subjects of the email messages that will be sent as output. Please see
the script for details. As with the other Perl scripts listed on this
server, you will have the change the first line of the script to point
to the location of the Perl interpreter. Once the script has been customized for
your site, you'll want to create a front end to the script. I suggest using the
example response form that has been provided above. Basically, the form will have
to remain in its current configuration. That is, it must have a pull down box, check-box
for cc response, comments section, etc. Titles can be modified, but not the variable
names of each field, otherwise the script won't work. The form action line will have
to be changed to your www address and the directory where this script will reside. See
mcsimple for details on choosing a location. Insert the names and email
address of potential recipients into the locations provided in the form.
For additional recipients, follow standard HTML guidelines for the
construction of a pull-down box.
View the script.
This hypermedia page is maintained and copyrighted by Ron Earp.