Patches item #1904294, was opened at 2008-02-28 16:40
Message generated for change (Comment added) made by kona
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=425771&aid=1904294&group_id=39625Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: William McKee (kona)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for adding support for writing form submissions to CSV
Initial Comment:
I needed to be able to write form submissions to a CSV file for backup and data manipulation. The following patch does the job.
NOTES:
1. It requires Text::CSV be availble
2. A new config parameter called 'csv_file' is expected with the path to write the file to
3. A header line is only output if the file exists and size is 0
4. If you change your form, you should reset your csv file. No warnings are in place to let you know that changes are happening.
----------------------------------------------------------------------
>Comment By: William McKee (kona)
Date: 2008-02-28 18:32
Message:
Logged In: YES
user_id=224605
Originator: YES
In addition, if you want fields like 'email' to come through into the csv
file, you need to add include_config_NAME. Here's an example of a
%more_config settings for setting the csv_file and include:
%more_config = (
'csv_file' => '/home/garlicgold/public_html/cgi/sample_form_db.csv',
'include_config_email' => 1,
);
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=425771&aid=1904294&group_id=39625-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Nms-cgi-devel mailing list
Nms-cgi-devel@...
https://lists.sourceforge.net/lists/listinfo/nms-cgi-devel