Hi!
Is it possible to generate an export file and still showing different
HTML page??
I have a page and when the user clicks on a link I generate export file
(with header and data after header) and the page remains the same. It
would be nice if I could show another page, like message "data generated!".
And I have another question. I have the following code for sending
export file:
header("Content-Disposition: attachment; filename=export .txt");
header("Content-Type: application/octetstream");
header("Pragma: no-cache");
header("Expires : 0");
echo $Data;
but when the Save as dialog appears I get filename "export.txt.php ".
What must I do to get the right filename "export.txt "?
Thanks,
Branko
Is it possible to generate an export file and still showing different
HTML page??
I have a page and when the user clicks on a link I generate export file
(with header and data after header) and the page remains the same. It
would be nice if I could show another page, like message "data generated!".
And I have another question. I have the following code for sending
export file:
header("Content-Disposition: attachment; filename=export .txt");
header("Content-Type: application/octetstream");
header("Pragma: no-cache");
header("Expires : 0");
echo $Data;
but when the Save as dialog appears I get filename "export.txt.php ".
What must I do to get the right filename "export.txt "?
Thanks,
Branko
Comment