Why does the following code not start a download of MarLINData.cvs? Why, at the moment, does it always try and download getCVS.php?
Hope someone can help me,
Dan.
header('Content-type: application/force-download; name=MarLINData.cvs');
header('Content-Type: text/csv');
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
if ($_POST["browser"] == 'IE') {
header('Content-Disposition: inline; filename=MarLINData.cvs');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header('Content-Disposition: attachment; filename=MarLINData.cvs');
header('Pragma: no-cache');
}