CGIEmail and CGIEcho
(The author is indebted to Howie Grapek and Kip Scholl for
use of their notes)
Interacting with Visitors to your Web Page
CGIEmail
- A single CGI script intended to serve all FORM-to-email needs
- Provided by MIT to the Internet community as
public domain software
- Allows the user creating the email forms to control which fields are mandatory and
which are optional
- Easy to use
- No webmaster assistance required to put CGI scripts into the Web directories
CGIEcho
- Used to test CGIEmail forms
- Outputs to screen instead of sending email
A Brief Look at Forms
Who can use CGIEmail/CGIEcho?
The answer to this depends on your web server setup. Generally, anybody
can use a CGIEmail and CGIEcho, so long as they can access the cgi-bin directory
on the server OR use CGI scripts in their home directory structure.
How do I use a CGIEmail/CGIEcho?
- Copy the form*.htm and form*.txt files to your public_html directory.
Set the read-write-execute permissions so they can be used. For Example:
cp ~prime/HTMLhelp/form* ~myname/public_html
chmod u=rwx,g=rx,o=rx form*
- You must change the directory entry in the .htm HTML file to reflect the location of the
HTML file in your FortNet home directory. For Example if you are at
myname@fortnet.org and this file is in your public_html directory
then use /~myname/ in place of /~prime/HTMLhelp/ .
- Add a link on your page to reference the form. For Example:
<A HREF="/~myname/formaddr.htm">Please reply </A> or
<A HREF="formaddr.htm">Please reply </A>
- You must change the email address in the .txt Text file to refelct
where you want the form message mailed. For Example, change the
myname@fortnet.org entry to your actual email address.
- The return to home page links refer to the file 'index.html', which is
the 'Kip's HTML Help Page' Your home page my be at 'index.html' or some other file.
- The Long Address form will require that you modify the List Box description and
the List Box select items to suit you own needs.
You can use your Browser's File, Save menu commands to download these documents
now. Use the browser's 'BACK' command to return to this page. Edit the files and
then FTP them back to your FortNet public_html directory.
WWW Resources about CGIEmail/CGIEcho: