Phorm v3.5.2

Appendix B: Configuration Variable Summary
$PHORM_BASE    May or may not be passed from the form; if so, it contains the form name, which is compared against phormbase.php, to obtain a directory to switch to. If this variable is defined in the configuration file, it contains simply a path to a directory to switch to.
$PHORM_NAME    The name of the form. When passed from the form, it is identical in operation to $PHORM_BASE. In this usage, the two are interchangeable. If defined in the configuration file, it merely sets the name of the form, and does not cause a directory change.

$PHORM_CONFIG    The name of an optional configuration file containing values for the remaining variables, applicable to the current form only.
$PHORM_RCONFIG    If this is set to "Y", Phorm will not run if $PHORM_CONFIG is not set. You can use this to prevent people from going directly to the URL for Phorm and bypassing your form (which generates an alert to you!)
$PHORM_URL    A URL to attempt to redirect to if $PHORM_RCONFIG is set and $PHORM_CONFIG is not - presumably the URL of your form.

$PHORM_REFERER    A list of valid referers for your Phorm installation.

$PHORM_ALERTTO    Email address to send internal error messages to, such as unable to open the log file or database. If it is not specified, all error messages will be displayed to the visitor. If it is specified, only errors which affect the visitor's operation will be displayed.
$PHORM_ALERTFM    The From: address for the alert messages.

$PHORM_ACK    The name of an HTML file, containing variable substitutions, to output to the user after form submission. If unspecified, no ack is displayed, and Phorm attempts to redirect the user back to the URL of the form.
$PHORM_RDIRECT    URL to re-direct to after completion of processing, rather than displaying an ack page.

$PHORM_REQ    A space-delimited list of all required fields. Support for this variable is provided solely for backward compatibility; if a validation file is specified in $PHORM_VALDEFS, this variable will be ignored.

$PHORM_VALDEFS    The name of a file containing criteria for validating form contents.

$PHORM_TMPL    Text template file for formatting contents to be emailed to user. If not specified, contents are not mailed.
$PHORM_TO    Email address to send the contents to. It is required if $PHORM_TMPL is specified.
$PHORM_FROM    Email address for the FROM field of the emailed contents. Note: If this is blank, it will be set to the same as $PHORM_TO.
$PHORM_SUBJECT    Subject field for emailed contents.
$PHORM_HEADERS    Any additional email headers desired, such as X- headers. If you don't know what this means, then it is very unlikely you'll need to use it.
Note: $PHORM_TMPL can optionally be defined as an array in order to send more than one email message.

$PHORM_RESPOND    The name of a text file to be sent as an autoresponder
$PHORM_RESFROM    The FROM address for the autoresponder message.
$PHORM_RESUBJ    The SUBJECT for the autoresponder message.
$PHORM_RESRPLY    Address for the Reply_To field of the responder message.
$PHORM_RESHDRS    Additional email headers for the responder message.
$PHORM_RESATCH    The name of a file to attach to the responder message.

$PHORM_LOG    The name of a text file to log entries to
$PHORM_LOGVAR    A space-delimited list of variables to log to $PHORM_LOG
$PHORM_LDELIM    Log delimiter -- a character or string of characters to be placed between variable values in the text log. The default is a tab character.
$PHORM_LINEBRK    The line break character(s) to use in the text log. The default is the linefeed (LF) character.
$PHORM_LOGQUOT    The character to use to quote values in the text log. The default is the ' character.

$PHORM_MYDBV    The name of a file containing host, user name, password and database name for a MySQL database to log to.
$PHORM_MYTABLE    The name of the table to log the form to.
$PHORM_MYVARS    A string containing variables to log to a MySQL database.
$PHORM_MYSQLID    The value of an auto_increment field in your table after the insert.
Note: $PHORM_MYTABLE and $PHORM_MYVARS can optionally be defined as arrays in order to make multiple entries.

$PHORM_FILE##    An uploaded file.
$PHORM_CMODE##    Name-collision mode for an uploaded file.

$PHORM_INFONLY    Indicates that this form is info-only, and no logging or emailing is expected to take place. This prevents Phorm from throwing an error when it sees that the data has not been sent or logged.
$PHORM_PARSPHP    Indicates whether to parse PHP code in ack and error templates.
$PHORM_POSTINC    The name of a PHP file to include at the end of processing.