tags:

views:

27

answers:

2

i have a html form. And i want my output to be in excel sheet. Please suggest want i have to do. PHP.

+1  A: 

You can output the values as plain text with fields separated with a character like ; and import that in Excel as CSV.

kemp
A: 
<?php
// We'll be outputting a Excel
header('Content-type: application/xls');

// It will be called Test.xls
header('Content-Disposition: attachment; filename="Test.xls"');

echo "some Excel data";
?>
Luca Matteis