Excel not opened in browser when changing header

From: Date: Mon, 19 Feb 2001 12:51:11 +0000
Subject: Excel not opened in browser when changing header
Groups: php.general 
Request: Send a blank email to php-general+get-40560@lists.php.net to get a copy of this message
Hi I tried using the code below to send the output to an Excel sheet in my browser by changing the header to "Content-type: application/vnd.ms-excel". However I only see normal text in a browser. Excel is not launched. What is wrong?? -------------------------------------------------------------- <?php Header ("Content-type: application/ms-excel"); Header ("Content-type: application/vnd.ms-excel"); echo "<html><body>"; echo "<table>"; echo "<th>F1</th><th>F2</th>"; echo "<tr><td>Hi</td><td>Hi</td></tr>"; echo "</table>"; echo "</body></html>"; ?> ---------------------------------------------------------- Thanks Tim

« previous php.general (#40560) next »