note 25167 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:32:43 +0000 |
| Subject: | note 25167 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55614@lists.php.net to get a copy of this message | ||
Note Submitter:
----
One nice way of generating a report and/or allowing your users to export the contents of a table, is
to return HTML table tags as content-type Excel. This assumes the user has Excel 97 or later.
<?php
header('Content-type: application/vnd.ms-excel');
echo
"<table><tr><td>hello</td><td>world</td></tr></table>";
?>