Do you have a "value" for each of the checkboxes? They come thru fine on my csv.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I'm trying to attach the content of the form as an csv file to the email. Everything works well except that the content from a checkbox or multiple select list is not displayed in the attached csv file.
Here's the code I'm using,
<input type="hidden" name="filter" value="csv" />
<input type="hidden" name="filter_fields" value="realname,email,contact,colors[],vehicles[],mesg" />
<input type="hidden" name="filter_options" value="Attach=data.csv,CSVHeading,CSVQuote=',CSVSep=;, CSVIntSep=:,CSVEscPolicy=double,CSVRaw" />
everything else is as the standard sampleform.htm.
Any idea's?
Do you have a "value" for each of the checkboxes? They come thru fine on my csv.
Yes, I used the standard form which was provided by the distribution for testing purposes. The file includes values as;
Red <input type="checkbox" name="colors[]" value="red" />
Blue <input type="checkbox" name="colors[]" value="blue" />
Yellow <input type="checkbox" name="colors[]" value="yellow" />
u don't want the '[]' here:
this is wot u want:HTML Code:<input type="hidden" name="filter_fields" value="realname,email,contact,colors[],vehicles[],mesg" />
HTML Code:<input type="hidden" name="filter_fields" value="realname,email,contact,colors,vehicles,mesg" />
Hi,
Try removing the brackets from the checkbox fields in the filter_fields specification; not in the checkbox tag, just in the filter_fields specification.
Removed the brackets, but still no colors in de csv file which reads;
realname,email,contact,colors,vehicles,mesg
Realname,user@domain.nl,Y,Array,,attempt_01
Attached I uploaded both files for source..., formmail.php is stripped to meet allowed filesize.
Hi,
I think you've hit a bug.
Please upgrade to version 8.23 as we did find and fix a problem with array values in that version.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Just update to 8.23 version which shows multiple checkboxes in csv now.
Thanks everybody for your support!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks