Currently on clicking on export user is prompt a box
to save/open the export excel file to their system , though what i want is when user click on export/send data , the data get exported & save
to the server on specific folder
& later which I mail that file to the user as an attachment.
Did I have to make any change in my header for the same ?
For ref below is the header from my export excel library:
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=$this->filename");
header("Pragma: no-cache");
header("Expires: 0");
print "$header\n$data";
Thanks in advance.