Incode Systems Home Page Incode Systems, Inc.


SAVEFORM



SaveForm is web server tool for saving any HTML form to a file on the web server.

SaveForm creates a unique file on the web server containing the contents of the form in the same format as an INI file:

[ENVIRONMENT]
AUTH_TYPE=
CONTENT_LENGTH=123
CONTENT_TYPE=application/x-www-form-urlencoded
GATEWAY_INTERFACE=CGI/1.1
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
PATH_INFO=
QUERY_STRING=
REMOTE_ADDR=192.168.1.12
REMOTE_HOST=192.168.1.12
REMOTE_IDENT=
REMOTE_USER=
REQUEST_METHOD=POST
SCRIPT_NAME=/gateway/SaveForm.exe
SERVER_NAME=192.168.1.1
SERVER_PORT=80
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Microsoft-IIS/3.0
[CONTENT]
FormVariable1=FormValue1
FormVariable2=FormValue2
FormVariable3=FormValue3

SaveForm shows this Help screen when invoked like this: SaveForm.exe?help
This help screen is in the file SaveForm.htm in the same directory as SaveFile.exe.

SaveForm operates in Debug mode when invoked like this: SaveForm.exe?debug
Debug mode added an addition RAWCONTENT= to the [CONTENT] section which contains the entire unparsed content.

SaveForm returns a default page informing the user the form has been saved and provides a return button which functions the same as the Back button on the browser, allowing the user to return to the form to resubmit.

By default, SaveForm creates the unique file in the same directory as SaveForm.exe with a file name in the form: FRMnnnn.tmp (where nnnn is a number)

To override these default behaviors, you may include some hidden input tags in your HTML:
_REDIRECTLOCATION specifies a URL to redirect the user to after form submission.
_PATH specifies the server path in which the form contents will be saved.
_PREFIX specifies the file name prefix to use instead of FRM.

Example tag:

SaveFile instead.