Rod Clark's Home Page CGI Scripts

sendform.cgi Form Mailer v1.45

Updated July 22, 2002
New: security fix: This limits reading world-readable "blurb" files (that can be used with HTML forms with this script) to certain directories defined in the script by the Web administrator. This gives more protection against improper use of the utility.


The sendform.cgi script can mail you the information that a user enters on an HTML form. It also can send the user a copy of the data entered on the form, and can send optional related files that you define for each form.

This script doesn't generate a default form. To use it, make an HTML form that includes your specific data fields.

The script does no error checking on the entered data, except to make sure that any fields you list as required are filled out (with something) and the user's e-mail address has a likely-looking syntax.

When the user submits the form, the script can either display a generic thanks page, display the data within an HTML page on your server (in a manner similar to server-side includes, thus this will not work on pages that use server-side includes or PHP), or redirect the user to any page on the Web.

The script can be installed in the system's cgi-bin directory, for use by any local user.

Source code:
sendform.cgi script

User Documentation:
How to Use sendform.cgi

 


E-mail: Rod Clark
bb615@scn.org