[nycphp-talk] Re: Fw: PHP form to MS Excel file
Brian Pang
bpang at bpang.com
Wed Sep 8 12:19:10 EDT 2004
You can set the mime type to
application/vnd.ms-excel
with header()
or
just name the file with a .xls extension and use
application/octet-stream
So that you don't have to had the end-user import the csv file, output
your data in a html table that would mimic the spreadsheet.
Might also help to use table border=1, else the cell lines won't be visible.
This isn't a true Excel file, however. I believe there are other tools
for that purpose.
> If someone knows how to generat and Excel file, though, I'd be
> interested in eharing how.
More information about the talk
mailing list