From: James E. F. <jf...@ac...> - 2002-03-22 20:00:11
|
Please do! How do you plan to do this? I was thinking that there would have to be some script outside the admin/include framework to do this (since by then there are already headers/data sent). This script outside should use a content-type of "application/x-csv"(?) and return the actual csv data. I would suggest splitting the exising survey_export_cvs() into: survey_generate_cvs() -- creates a string/array of data survey_export_cvs() -- calls generate, and writes to file Then your download script could call generate, and just print the appropriate headers then the data directly. -James On Fri, 22 Mar 2002, Matthew Gregg wrote: > Cool. Since that was done so fast. I can move on to the next change. > Unless someone objects or has already started it, I would like to add > "download" to the export function. |