1) You can use the content-type 'text/csv' and most browsers will popup a window prompting the user to save the file. Since you've already named the file 'xx.csv', most browsers will pop that name into the dialog as the default name.
2) Depending on your data, you might need to escape any commas that are in the fields. You can do this by hand, or you might want to simply use DBD::CSV, which will take care of everything for you.
Hope this helps!
In reply to RE: Database Downloads
by lachoy
in thread Database Downloads
by steveAZ98
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |