home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
comms
/
other
/
aemail151
/
files.lha
/
ARexx.lha
/
Form.readme
< prev
next >
Wrap
Text File
|
1998-03-08
|
4KB
|
86 lines
Name: Form.aem
TO BE USED BY REGISTERED USER'S ONLY
This ARexx script is used to process forms sent by a web browser. The form
must be set up as:
<FORM METHOD="POST" ACTION="mailto:an email address">
No CGI script is required to decode the form. This ARexx script is
designed to handle the raw email output of the HTML FORM command. The
script is designed to automatically update a data base created by Final
Data by Softwood.
An added feature of this script is the ability to add an email address to
your address book if the form has a field with a NAME = "email".
HOW TO IMPLEMENT
----------------
This script is probably best placed in your REXX: directory. Before
starting the script you will have to define a database in Final Data. You
should use the names used in the form for the field names in the database.
One additional field will be required called "datercvd". This field will
be used to place the date the form was received in the database. The date
received will be taken from the Date: header in the message.
Final Data is executed using the statement:
ADDRESS COMMAND "Run >NIL: FinalData:FinalData"
The standard installation of Final Data does not provide a FinalData:
assign. You will have to add this to your User-startup yourself or change
the above line in your script to the full path name of where Final Data is
located.
HOW TO USE
----------
Before you start the script you will need to select the folder that
contains the form message.
When the script is called it will ask you if you want to add to the address
book. If you do, you will be prompted for a group nickname. If the group
nickname does not exist you will be asked if you want to create it, enter a
new name, or cancel. If you wish to create it, the group will be created
when the first email address is processed. You will be immediately
prompted, however, for the Group Description and if you want to set the
Send Header Only flag when the group is created. If you want quotes
surrounding the group description, they should be entered with the group
description string.
If the nickname is already used for an individual, you will be given an
opportunity to reentering the nickname or cancelling.
If you cancel the "Enter Group Nickname" requester you will proceed without
adding to the Address Book. If you cancel on one of the error
notifications, you will exit from the script and will have to restart it.
The next thing the script will do is load Final Data if it is not allready
loaded. You will then be asked to open a database by Final Data. This
database must already have been created.
Each message in the selected folder when then be read looking for messages
that have a subject with "FORM POST" (normally returned with the message by
the Web Browser).
If the message is a Form Posting, it will be parsed for the appropriate
fields. The data in the fields will then be added to the database based on
the FORM NAME.
If a field with a FORM NAME of "email" is found, that email address will
then be added to the group in the Address Book if you requested this
function.
As each FORM message is read it will be marked as read, deleted, and
selected. After the entire folder is processed you will be given an
opportunity to save all of the messages that were processed to a file.
When you exit from the script, Final Data will be terminated. It will ask
you if you want to save the changes to the database that you have made.
Reply appropriately.