RE: [PHP] Re: Exporting HTML to Excel

From: Date: Wed, 13 Oct 2004 14:41:02 +0000
Subject: RE: [PHP] Re: Exporting HTML to Excel
Groups: php.general 
Request: Send a blank email to php-general+get-199378@lists.php.net to get a copy of this message
> Philip Thompson wrote: > > > ------------- > > <?php > > header('Content-Type: application/ms-excel'); > > header('Content-Disposition: attachment; filename="project.xls"'); > > ?> > > > > <table> > > <tr> > > <td>Something</td> > > </td>Something else</td> > > </tr> > > </table> > > ------------- > > > > I just want it to have that content in the spreadsheet. > > Works for me... (Excel 2000) > "Something" appears in A1 > "Something Else" appears in B1. Worked for me too.. Even though I didn't think it would :) Seemed too simple. I'm running Excel 2002. -TG

« previous php.general (#199378) next »