NetForms User's Guide: Storing Plain Text

NetForms also supports a simplified method of accepting and storing data that users enter into your forms. As data is entered into a form, NetForms will store the information into a tab-delimitted ascii text file. This file can then be imported into the application or database of your choice whenever you need it.

To store data into an ascii text file, you will use a simplified FDML processing file which has two components. First, you will begin with a <TEXTSTORE> directive in place of the CreateDoc directive. After the TextStore command, you will simply list the names of the fields in the order you would like them stored.

The TextStore command has the following form:

  <TEXTSTORE>"TextFileName" "ResponseFileName"</TEXTSTORE>

Both filenames specified can be a simple file name or a full path. The "TextFileName" is the name of the file that the data entered into the form will be stored in. The "ResponseFileName" is the name of an HTML document that will be displayed to the user after their form has been processed.

After the TextStore command, simply list the field names as they appear in the HTML entry form. The field names may be seperated by spaces, tabs, or returns.

See the "Mailing List" example included with the NetForms package for a complete example of how to use this feature of NetForms.


NetForms (C) 1994 by Maxum Development Corp.

Return to the contents page