COUNTER.PHP Counter module for Phorm. The purpose of this module is to generate an incremented number each time a form is successfully submitted. INSTALLATION To install this module, place the file counter.php in your plugins directory, and add the following line to the registry file registry.php: > valid counter.php If you want the counter to increment regardless of whether the form passes validation use this line instead of the above: < valid counter.php USE The module maintains the counter in a plain text file. You can specify the file to use with the variable $PHORM_CNTFILE. If you don't specify it, the module will look for a file named count.txt in the templates directory and use it if it exists. Using $PHORM_CNTFILE, you can specify the same counter for a number of forms if you wish. Phorm must have write access to the file. The count will be available in the variable $PHORM_COUNTER. Note that, if the file count.txt exists in your templates folder, and the this plugin is active, the number in count.txt will *always* be incremented when a form passes validation, even if $PHORM_CNTFILE is not set. That's all there is to it! =========================== Copyright (c) 2002 Holotech Enterprises (phorm@holotech.net) You may freely distribute this program as-is, without modifications, as part of a valid Phorm distribution. If you are not sure whether you have a valid distribution, you can obtain one from http://www.phorm.com/. You may use this program freely, and modify it for your own purposes.