|
|
 |
The following web server cgi script is available for use on
cybox hosted web sites.
In order to create a form which sends the form data
to a file:
- Create the form page.
- Specify the form method as POST.
- Specify the form action as "http://cgi.cybox.com/form2file.cgi".
- Create the following hidden form fields in your form,
containing the information to customize the delivery (in
Frontpage, form properties, advanced):
| Name |
value |
| FILE |
the name of the file in which to save the data |
| SUCCESS |
the URL to display if the form submission succeeds |
| FAILURE |
the URL to display if the form submission fails |
| LOCKED |
the URL to display if the form submission fails because the file is busy (by default, this is the same as FAILURE |
- Form field names are case sensitive.
- On your form, do not use form field names which are all
uppper case. Those field names and values will not be included
in the output.
- The file name can only contain alphanumeric characters.
The file will be stored in the same directory as the web page
form that referenced it.
- The resulting output file will be a text file, each line will be one
form submission record, each form field is separated by a semicolon
(so avoid semicolons in your form field values). The file will
have line separators suitable for reading the file on a Windows
system or importing it into a spreadsheet such as Excel.
- The resulting output file will NOT be readable through a web browser.
To read the file, use the same tool you use to publish your web
files to download the output file.
- If you add, remove, or rename fields in your form, you should
download your output file and then delete it from the web server.
That will ensure the field headers at the top of the file match
the data recorded.
|