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?