views:

17

answers:

1

I have a function

        generateCSVlist($var)

This function returns a Comma Separated Value list, a (huge) text string. I can easily display this text on a webpage

        <?PHP $myList = generateCSVlist($var); echo $myList; ?>

but actually I want to provide a button (or link) on my webpage which shall open a download window and ask where to save the CSV file. How can I do that?

+1  A: 

This Answer to a similar question will get you on the right track

enobrev