I have this code
<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=export.xls");
// Fix for crappy IE bug in download.
header("Pragma: ");
header("Cache-Control: ");
echo $_REQUEST['datatodisplay'];
?>
It puts the data from the html table into excel, but the only problem is that I do not see the grid in the sheet. Am I missing something? Thanks
source
share