|
|
Virtual Form CGI Written by Victor T. DeCristoforo Copyright Area 51 Consulting Inc. Last Update: May 24, 2000 |
The following information will describe what input fields the CGI requires an
what are optional.
A brief explanation of what each input field does and what options it takes
is also outlined.
|
FIELD NAME
|
DESCRIPTION
|
|
VF_ReturnURL |
- This is the page the CGI will return to upon completion of the form. Example: |
|
VF_MailTo |
- This will be the email address the form data
is mailed to. The email address must be a fully qualified host and domain
name. Multiple receipts can be specified by separating the names with a
comma. Example: vicd@mail.ar51.net <Input type="hidden" name="VF_MailTo" value="webmaster@mail.thisdomain.com" > If the value="NONE" is used then there will be no email reply |
| Submit | - This must be used to submit form data to the CGI. Example: <Input type="submit" name="Submit" value="Continue" > |
| Accept |
- Required when a verify user response is needed. Example: |
|
FIELD NAME
|
DESCRIPTION
|
| VF_FormTitle |
- This will be the title that is displayed upon displaying the data that the user entered, prior to accepting the form data. Example: |
| VF_Subject |
- This will be the subject that is used with the email. Example: |
|
VF_REQUIRED |
-This hidden fields value parameter may hold the field names required by the HTML form. Example: |
| VF_FormTemplate |
-This optional field allows the webmaster to create a custom output form template that will be used to email the form results. -This template file must contain the form names that are used in the
actual form. Example: |
| VF_DBFIELDS |
-This option allows the webmaster to create a real-time database file. The file that is created will format its output data using CSV (Comma Separated Values). -The value= field will have to contain the filename to create along with the field names to save data for. Example: |
| VF_ReplyEmail |
-This optional field will allow the CGI to use the field name provided by the value= attribute as the user field to use as the sender of the form data. Example: |
|
VF_VERIFY |
-This optional field will allow allow for a verification page to be displayed or not. -By default if this option is not used there will be no verification page. If the value= is set to "1" or "TRUE" then the CGI will use its default output verification page. -If the value= attribute is set to a full path to a valid file name that
is readable, then the form data entered will be merged with this as a
verification page. Example: |
| VF_NoFileHeader |
When using the VF_DBFIELDS or VF_DBFILE options, this parameter implies NOT to create or use a field header record. Example: DEFAULT is to use field names |
| VF_FieldSeparator |
With this hidden field option the field separator to use for creating or reading from a data file can be specified. The value is given as a encoded hex value. Example: To use the TAB character as the field separator DEFAULT="," (CSV Comma Separated Value format) |
| VF_Debug |
This allows for VFORMII to output a extra debug log file the the log file directory. The values field can be from 0 - 9. Where 9 is the highest debug level to use. With the level set to 3 or above can cause the debug file to get quite large. |
|
FIELD NAME
|
DESCRIPTION
|
| VF_DBFILE |
|
| VF_MERGEFILE |
|
| VF_QNAME |
|
| VF_QVALUE |
|
| VF_INAME |
|
| VF_FieldSeparator |
With this hidden field option the field separator to use for creating or reading from a data file can be specified. The value is given as a encoded hex value. Example: To use the pipe character as the field separator DEFAULT="," (CSV Comma Separated Value format) |
| VF_QWILD |
This option works with the VF_QVALUE. It will allow for a partial or specific match. The default uses partial matches. Example: For specific searching of the VF_QVALUE All searches are non case sensitive. |
Optional command line parameters that can be used when calling the CGI are:
|
PARAMETER
|
DESCRIPTION
|
| D# | - The 'D' enables extra logging information into a .debug
file - The '#' represents a number from 1 - 9. This will define the log level. Where 1 is minimal logging where 9 would be max logging. |
| V | Prints out the version of this CGI |
Example to display the version of the CGI: /cgi-bin/vformfm.cgi?V
name,sex,company,title,phone,email,DATE
Victor,Male,Area 51 Consulting,VP Software,330-374-0351,guru@ar51.net,Aug 11
16:24:53
John,Male,Area 51,CEO,,johnr@ar51.net,Aug 13 12:06:59
| Configuration Option | Description |
| RootDir= |
The root directory is the base directory defined by the web server. This will be the directory of where files to merge with will start. DEFAULT is the value returned from the Web Servers environment variable DOCUMENT_ROOT. |
| DataDir= |
The data directory is a directory that needs to be read/write by the CGI for usually user nobody. (chmod 777 or 770 with group set to user nobody) This will be the directory that the log and debug files will be written to, along with any data files that need to be created. This does not necessary need to be a readable directory if there is no intent to share the data to the web user. DEFAULT is to use the CGI's directory ./formdata. (cgi-bin/formdata) The formdata directory will need to be created. This directory will need to have read/write permissions for user nobody or (the owner of the webuser). |
| LogFileDir= |
The directory and file name to use for the log file. DEFAULT is is to use the CGI's directory ./formdata. With the file name of "vformfm.log". |
| UserHomeDir= | Home directory of where users files are located. This is for
when the Web server is running with user home directories. Example: /home |
| UserBaseDir= | This is the base directory that the Web server uses in side
a users home directory. Example: public_html |
| DATE | DESCRIPTION |
| 12/16/1999 | Prefixed field names with "VF_". The fields affected
are as follows: MailTo, ReturnURL, Subject, FormTitle, DF -> VF_DBFILE, MF -> VF_MERGEFILE, Q -> VF_QNAME, I -> VF_INAME, QV -> VF_QVALUE |
| 03/01/2000 | Added VF_FieldSeparator to GET and POST functionality. Corrected documentation VF_INAMES changed to VF_INAME. |
| 03/03/2000 | Restructured this document into seperate files. Corrected formating issues when dealing with special characters. Corrected white space parsing when reading or writing to a data file. |
| 05/24/2000 |
Added new TAGS VF_Debug, and VF_QWILD. |