home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
frmck112.zip
/
formcheck.doc
< prev
next >
Wrap
Text File
|
1998-06-05
|
11KB
|
327 lines
■
│ FormCheck/2 v1.12beta
│ Copyright (C) 1998 Arne Blankerts
│ Freeware
│ Date: 1-JUN-1998
────────────────────────────────────────────────────────
F O R M C H E C K . D O C
────────────────────────────────────────────────────────
∙ 0 ∙ Introduction
∙ 1 ∙ Legal stuff
∙ 2 ∙ The Package
∙ 3 ∙ Install & Configuration
∙ 4 ∙ Short Example
∙ 5 ∙ How to Contact
∙ 6 ∙ Trademarks and other stuff
∙ 7 ∙ History
∙ 8 ∙ Future
────────────────────────────────────────────────────────
────────────────────────────────────────────────────────
- 0 - Introduction
────────────────────────────────────────────────────────
FormCheck/2 is desigend to be a CGI-Program executed on a "submit"-button
of a from. It works with either the POST or GET. FormCheck controls the
data passed for being complete and then passes to a mail or fax-process.
It can handle "dependings" (e.g. different mail-adresses on different entrys
at an element in the form).
The programm was tested with Apache/1.2.4 running on OS/2 WARP 4.0 and
OS/2 WARP Server 4.0.
────────────────────────────────────────────────────────
- 1 - Legal stuff
────────────────────────────────────────────────────────
FormCheck/2 is freeware. That means you can use, copy and distribute it
for free but you are *NOT* allowed to modify or sell it. As being an ISP
or content-provider you are allowed to sell the USE of the programm but
not the program itself.
Since FormCheck/2 is free there is no warrenty for the program working.
It may contain bugs and I give nothing else for garantie then that the
programm will need some space on your harddisk.
*** Use FormCheck/2 on own risk ***
If you use it, please give me an email just to know there's someone
giving it a try.
────────────────────────────────────────────────────────
- 2 - The Package
────────────────────────────────────────────────────────
Formcheck is provided by default now as ZIP-Archive.
(Some uses had problems with the RAR-Archive.. don't know why .-( )
It includes the following:
FormCheck.doc - This file :)
FormCheck.ini - The configfile
FormCheck.exe - what may this be..? ,)
File_id.diz - Describtionfile for BBS
Tips.txt - Some information
Bugreport.txt - hopefully not needed. A form to help me
to find bugs ;)
\DEMO
FormCheck.ini - The configfile for the demo
Index.html - The html-code for the demo
test.conf - The conf-file for the demo
────────────────────────────────────────────────────────
- 3 - Install & Configuration
────────────────────────────────────────────────────────
FormCheck/2 is to be installed very easy :)
Since FormCheck.ini is more the 8.3 the filesystem has to be HPFS :)
Being able to read this file you have already started the sfx-archive :)
If not, please do so in an empty directory.
Copy the files FORMCHECK.EXE and FORMCHECK.INI to your /CGI-BIN (or
any other directory where the webserver is allowed to execute CGIs)
Modify the FORMCHECK.INI as needed (documentation inside)
Create your HTML-File including the form. The "action"-parameter
has to be like /cgi-bin/formcheck.exe/TEST. the "/TEST" is the
information, that the Name of this From is "Test". An entry has to be located
in the Ini-file under the Topic "forms".
Create a directory somewhere for a form. Add this directory and the
config-file-name to the TEST-Entry in the INI-File.
Copy the example.conf to this directory. rename it to match the INI-Entry.
Modify the renamed example.conf as needed. (documentation inside)
That's it :)
────────────────────────────────────────────────────────
- 4 - short example
────────────────────────────────────────────────────────
Let's assume the form is acually displayed.
It has the following html-syntax (part only :) :
...
<FORM action="/cgi-bin/formcheck.exe/demo" method="post">
<TABLE>
<TR>
<TD>ID:</TD>
<TD><INPUT TYPE=TEXT SIZE=40 NAME="ID"></TD>
</TR>
<TR>
<TD>Name:</TD>
<TD><INPUT TYPE=TEXT SIZE=40 NAME="Name"></TD>
</TR>
<TR>
<TD>Steet:</TD>
<TD><INPUT TYPE=TEXT SIZE=40 NAME="Street"></TD>
</TR>
<TR>
<TD>city:</TD>
<TD><INPUT TYPE=TEXT SIZE=40 NAME="city"></TD>
</TR>
</TABLE>
...
This form includes the fields: ID,Name,Street,city
to make FormCheck work an entry in the FORMCHECK.INI has to be like that:
[FORMS]
DEMO=C:\DEMO\DEMO.CONF
This file "C:\demo\demo.conf" will look like that:
First the FORM is declared.
All elements to be processed have to be listed.
[FORM]
ELEMENTS=ID,Name,Street,city
Assume we don't want any field to be empty.We also want the
ID, since this is a fixed format, to be at least 5 chars.
FORCE=ID:5,Name:0,Street:0,city:0
If anything entered is not correct, a fail is produced so:
[FAIL]
HEADER=C:\DEMO\FAIL.HTML
TEXT=The Fields %1 are not entered correctly
SPLIT=,
FOOTER=E:\TEST\FFOOTER.HTML
This results in fail.html being send to the user, then the text is
send (the %1 is replaced by the name of the Fields divided by SPLIT)
After this the ffooter.html will be displayed.
TEXT and SPLIT may contain HTML-Code if you want to...
You can leave the HEADER= and FOOTER= blank. Then only TEXT is produced.
The Same goes for the SUCCESS
Ok.. we've the form checked, everything is fine.. what will happen now ?
If in Section
[SEND]
FormCheck finds an DEPENDS= this will be used (explained later). If Not
an entry has to be "MAIL" or "FAX". (not both !!)
if its
MAIL=ABLANKERTS@freepoint.DE
the form, or better the translated file by FormCheck, will be send as Mail to
the email ABlankerts@freepoint.de (which is my acc :) so please do alter
this...)
The Same goes for FAX:
FAX=0049-40-12 34 56 78
Let's see now for the
DEPENDS=CITY
If this is found, a "simple" MAIL and FAX were ignored.
The lines behind DEPENDS have to fit all possible values for that field.
e.g. if CITY could be HAMBURG the following entry has to be in the
SEND-Section:
HAMBURG=MAIL,ABlankerts@freepoint.de
if CITY is HAMBURG, the translated form will be emailed to my acc.
if the value for CITY is NOT defined, then nothing happens :)
To make the translated File more readable two texfiles can be linked to
the mail or fax:
[RESULT]
HEADER=C:\DEMO\START.TXT
FOOTER=C:\DEMO\END.TXT
This creates a file starting with the text from START.TXT followed by
the entrys of the form. After that, the text from END.TXT will be added.
If you use %IP% instead of END.TXT or START.TXT a file with the User-IP
is read. e.g. if you come from 127.0.0.1 this will be the filename:
C:\DEMO\127.0.0.1 ( assuming you defined "C:\DEMO\%IP%" )
────────────────────────────────────────────────────────
- 5 - Contact
────────────────────────────────────────────────────────
If you like or hate this program let me know ;)
Arne Blankerts
Mörkenstraße 9
D-22767 Hamburg
Germany
eMail: ABlankerts@Freepoint.de
IRC (most time IRCNet and WEBBNet)
Nick: TheSeer
Channels: #OS/2
#SDG (only Webbnet)
#OS/2ger (only IRCNet)
#Hamburg (only IRCNet)
────────────────────────────────────────────────────────
- 6 - Trademarks and other stuff
────────────────────────────────────────────────────────
OS/2 is a trademark by IBM Internation Business Maschines
Apache/1.1.3 is freeware.
The OS/2-Port is by Garey Smiley <Garey@slink.com>
or by Kerry Webb <trixer@suntrix.com> (his is 1.1.3a)
Any other trademark is a trademark of the respective holder.
Thanx to IBM for creating OS/2, Netscape for a great Browser
Fuck to Micro$oft(R) for all the shit they call software...
────────────────────────────────────────────────────────
- 7 - History
────────────────────────────────────────────────────────
[Version 1.12beta]
∙ Recompiled without debugcode. smaller filesize.
∙ Minor Changes to enhance speed..
∙ Copied CMD-Option from standart ini to local checkfiles
(If no local CMD is found, the default from the standart ini is used)
[Version 1.11a ( Bugfix for a user ) ]
∙ Fixed a bug on handling TEXTAREA-Elements
[Version 1.11]
∙ Added an updated inetmail.cmd (should work now.. Thanx to SPOC (IRC)
∙ Added a small DEMO
[Version 1.1]
∙ Added the %IP%-Option for dynamic use of text
∙ Fixed a small cosmetic bug
[Version 1.02]
∙ Added the DEL-Option to formcheck.ini
∙ Now outputs all fails at once
∙ Added the SPLIT-Option in the xxxx.conf
∙ Added senderinformation to output-file (see next point!)
∙ Added the flag DETAILS to place senderinformation into output-file
∙ Added linebreak for inputs >60 chars
∙ Removed some old german outputs for internationl style
∙ Fixed a small bug in init-routine
[Version 1.01]
∙ Added rexx-script inetmail.cmd for use without sendmail
∙ Added some more debugdetails in DEBUGMODE=1
∙ Fixed a stupid bug in the config-reader
∙ Changed config-entries to non-casesensitiv search
[Version 1.00beta]
first public release.
[Version 1.00aplha]
Used on our system only.
[Version till 0.9]
not released. Only local testing.
────────────────────────────────────────────────────────
- 8 - Future
────────────────────────────────────────────────────────
∙ Format-checks (e.g. xx-xx-xx)
∙ logical checks (e.g. birthday in future)
∙ better setup ?
There is nothing more planned for future releases.
But if you desire something let me know !!
[EOF]