IgLou provides a highly configurable
CGI program for processing and e-mailing forms. Any WorldLinks customer may
use this program. The program takes the information that is obtained
from the HTML form, then will send e-mail to any recipient specified in the
configuration file. The first step is to develop this configuration file.
This configuration file is a simple text file with the various fields
that will be sent to the mail recipient.
There are two essential variables that must start out every configuration file:
To: destinationemail@somewhere.com
Subject: My desired subject of choice
The configuration file will also contain all the fields from your form that you
want included. They will be specified by listing the variable name surrounded by square-brackets []. In our example, we'll include a name, e-mail address, and comment area. So the entire text file should look as follows:
Now develop the HTML form as normal,
but the initial <FORM> tag should look as follows:
<FORM METHOD=POST
ACTION="http://www.iglou.com/cgi-bin/cgiemail/worldlinks-id/myform.txt">
Just replace the worldlinks-id with your WorldLinks ID, and the
myform.txt with the name of the text configuration file for the form.
The first INPUT should be defined as a hidden field which will name the success or Thank You
page that will be pulled up to notify the user that their form was handled
properly. This is done as follows:
<INPUT TYPE="hidden" NAME="success"
VALUE="http://worldlinks-id.myiglou.com/thanks.html">
Just replace the worldlinks-id with your WorldLinks ID, and then replace the
thanks.html with the name of the HTML file you wish to pull up after
the form has been submitted.
Continue adding <INPUT>
fields until all the ones outlined in the configuration text file are used.
Any type of input can be used in the form. All information will be relayed
back to the configuration text file and mailed back to the address
designated.
Using the example text
configuration file above, here is what the corresponding HTML source would
look like:
<FORM METHOD=POST ACTION="http://www.iglou.com/cgi-bin/cgiemail/worldlinks-id/myform.txt">
<INPUT TYPE="hidden" NAME="success" VALUE="http://worldlinks-id.myiglou.com/thanks.html">
Your name: <INPUT TYPE="text" NAME="name" SIZE="30"><BR>
Address: <INPUT TYPE="text" NAME="address" SIZE="35"><BR>
E-mail: <INPUT TYPE="text" NAME="email" SIZE="20"><BR>
My comment is:<BR>
<TEXTAREA NAME="comment" ROWS=10 COLS=50></TEXTAREA>
<P>
<INPUT TYPE="submit" NAME="submit" VALUE="Submit">
The user would fill out all the above requested information then click on
the submit button. They would see the thanks.html page, and the
recipient would receive e-mail that would look something like this:
This will allow you to have any
type of form information e-mailed to you instantly when the SUBMIT
button is pushed. If you have any questions, feel free to e-mail
worldlinks@iglou.com