SteveBrett
Programmer
I have a pretty specific problem.
What i need to do is dump out a report in a table (whihc i have done) but also give the user the option to download the file as a csv.
I've got php to create a file in a tmp dir using tempnam() and then opening the file, writing to it and closing it. Got the link sorted to the file but when the user clicks on the file it opens it in another window. Right clicking and choosing Save Target As works but what i was looking for was an automatic download ... like 'Your download will start automatically ...' kind of thing ?
Any ideas ?
Steve
What i need to do is dump out a report in a table (whihc i have done) but also give the user the option to download the file as a csv.
I've got php to create a file in a tmp dir using tempnam() and then opening the file, writing to it and closing it. Got the link sorted to the file but when the user clicks on the file it opens it in another window. Right clicking and choosing Save Target As works but what i was looking for was an automatic download ... like 'Your download will start automatically ...' kind of thing ?
Any ideas ?
Steve