Add new comment

PHP - Form2CSVTable

This application will convert all data submitted by an HTML form to a CSV table located in the same folder as the script.
The generated CSV file follows the RFC4180 standards.

Requirements

  • Read/Write permissions of the script folder or destination file (safer).
  • PHP version > 4.0

License

GNU/GPL

Instructions

  • Use the POST action on the HTML form to be submitted.
  • Your FORM must have the following HIDDEN fields:
    • table_name : The value from here will be used as the filename of the destination table (any extensions will be ignored)
    • redirect: The URL of the page where the user will be sent after the script is finished.
  • (Optional) Edit the "field_delimiter" setting on the PHP script to adjust how the fields will be separated in the CSV table. The default value is "," (comma) and should work in most of the cases.
  • (Optional) Edit the "strip_lines" setting on the PHP script to allow line breaks in the table cells.
  • Edit the "reserved_names" on the PHP script and add all the posted vars you don't want to be exported to the CSV file. The default list already has the common names.


IMPORTANT: If you are having trouble while opening the CSV files on Excel, verify the "field_delimiter" setting.

Files
Version
2.2
Platforms
PHP 4 or higher
File size
4KB

Post Categories

The content of this field is kept private and will not be shown publicly.
CAPTCHA
4 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Protected by Spam Master