Predefined Variables
There are some predefined, dynamically generated variables for your use in templates.
- Date
- Time
- Fields List in HTML
- Fields List in Plain Text
- HTTP Referrer
- HTTP User Agent
- Remote IP
- Script Url
- Timestamp
- Unique Reference Number
Date
Returns the current date.
Syntax:
The format should be specified by setting "date_format" in the configuration file. You can use following common examples of the "date_format" setting and get the corresponding date value output.
Examples (Assuming today is: March 10th, 2001):
March 10, 2001
03.10.01
10, 3, 2001
20010310
It is the 10th day.
Sat Mar 10 2001
Time
Returns the current time.
Syntax:
The format should be specified by setting "time_format" in configuration file. You can use the following common examples of the "time_format" setting and get the corresponding time value output.
Examples (Assuming the current time is: 5:16:18 pm):
5:16 pm
17:16:18
17-16
Fields List in HTML
Returns all form fields and their values in HTML format.
Example:
Result:
Fields List in Plain Text
Returns all form fields and their values in Plain Text format.
Example:
Result:
HTTP Referrer
Returns the current form URL
Example:
HTTP User Agent
Returns the submitter's user agent: OS Type & Version, Browser Type & Version.
Example:
Result
Remote IP
Returns submitter's IP address.
Example:
Result:
Script Url
Returns URL to script (to Form Processor Pro).
Example:
Timestamp
Returns the UNIX-timestamp value. Should be used with the date_format modifier to set desired format.
Example:
Unique Reference Number
Returns a unique reference number. It may be used for your own records.
Example (in config.php):
So you can use {#var_name#} at any of your templates to show unique reference number.