From: Paul B. <pbo...@sc...> - 2002-03-06 18:57:40
|
Hi James,Griffin, I stumbled on this one too, but being still on my php learning curve, I am not sure if the changes I made are the best solution. Anyway, the attached file (which lives in <phpesp-install-dir>/admin/include/lib) solves the problem for me. It does take into account multi-valued multiple choice cases. Take a look at the lines starting at line 379 since I would like some feedback. I changed the survey_export_csv.inc in order to strip line feeds from text fields and replace these occurences with a <br> tag. Also, with multi-valued answers, the separator is changed to something else ("<->") than the field separator (a "|" in my modification) . Anyone interested in that one? Regards Paul James E. Flemer wrote: > Hehe ... It's listed on the bugs list on sourceforge. I > know about the problem ... don't have time to fix it right > now (have classes and such). That part of the code > shouldn't be too hard for someone else to hack up tho, so > if anyone has the time that I lack, I'd appreciate a patch. > -James > > On Mon, 4 Mar 2002, Griffin Palmer wrote: > > >>I've installed phpESP and am knocked out by the functionality. This is a >>very well thought-out program. >> >>However, I've run into a snag in the export-to-CSV feature. A couple of my >>questions have "other" as a possible response. When the respondent chooses >>other, the CSV export feature populates that field with the value "!other" >>instead of the actual response. >> >>Has anybody else encountered this problem, and have you figured out a >>work-around? >> > > > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > |