PERSONALIZATION TAGS (Predefined System)
You can pull system data into your auto-response and/or form results email as well as MYSQL and/or Flat File database.
The system information you can pull includes the form poster IP Address, date and time information.
To retrieve the system information you need to call the Biz Mail function predefined().
Each piece of system information has a corresponding alpha value which is case sensitive.
A full list of all alpha Characters and the data they correspond with or represent can be found in the manual system_predefined.txt
It would be helpful to have the manual handy while reading through this section as we will be referencing the manual in this section of the readme.
Example:
Say you want to pull in the IP address to a form field. Note: the field name="" will be of no consequence in this example.
<input type="hidden" name="ip_address" value="predefined(I)">
Breaking down the code:
First, you create a hidden from field, that in this example, will write the predefined data of the "Form Posters" IP address.
The first part of the code is: predefined(
This should be followed by all corresponding predefined system alpha characters that you want pull into that field.
In this example we are only pulling one system alpha charachter: I
When referencing the system_predefined.txt manual we see that the predefined system alpha character "I" pulls in the "Form Posters" IP address.
We then close out the statement with the closing bracket: )
Example 2:
Say you want to place the current julian date into a form field, then you would use:
<input type="hidden" name="julian" value="predefined(YMD)">
When refrencing the system_predefined.txt manual we see that the charachters:
Y = four digit year
M = two digit month
D = two digit day
So if it was January 5, 2006; it would print: 20060501
PLEASE NOTE: When using the predefined function in a form field, only the predefined() function should be placed in the form field, with all data placed inside the two brackets ().
For example, an INVALID CONFIGURATION WOULD BE:
<input type="hidden" name="julian" value="Date predefined(YMD)">
However, you are able to use special characters, numbers, or spaces inside these two brackets.
For instance, a VALID CONFIGURATION could be:
<input type="hidden" name="date" value="predefined(M/D/Y)">
Thus far, we have only looked at using the predefined() function in form fields which can be sent to the results email and in turn can be sent to the MySQL and flat file databases.
Additionally you can also use the predefined() function in the auto-response email sent to the form poster.
For instance, if today was January 5, 2006 and you had the auto-response email text of:
Hello {firstname},
You submited your form today predefined(M/D/Y) and I just wanted to say thanks.
Sincerely,
John Doe
If "Joe" was entered into the form field "firstname", then the above auto-response email example when sent to the form poster will be translated to read:
Hello Joe,
You submited your form today 01/05/2006 and I just wanted to say thanks.
Sincerely,
John Doe