Log submissions to file

Top  Previous  Next

Log template is designed to record all form submissions and to present them in a suitable human-readable form to customer.

Log templates must have the filename to write to as the first line. Everything after the first line will be appended (tacked onto the bottom of) the file specified.

Example (for config.php):

log_file = log.txt

Example of the content for logging template (DB or CSV file):

simple.csv

{#eMail#};{#Name#}

Result (simple.csv file will contain such lines):

one@email.com;name1

two@email.com;name2

You can open CSV file in MS Excel as simple spreadsheet.

 

 

Note:
Path to log file in log template is relative to log  template file. For example: if they in the same folder, it should be just name of log file. If log template in folder 'public_html/' and log file is in folder 'public_html/log/', then it should be 'log/simple.log'