Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/05/2005, 07:57
marcomartinez
 
Fecha de Ingreso: agosto-2004
Mensajes: 95
Antigüedad: 19 años, 7 meses
Puntos: 2
La forma más simple de hacerlo es decirle al navegador que el contenido corresponde a un archivo excel..

Código PHP:
<?
Header
("Content-type: application/vnd.ms-excel");
Header("Content-Disposition: attachment; filename=nombre_archivo.xls");
header("Pragma: no-cache"); 
header("Expires: 0"); 
?>

<table>
<tr><td>Ejemplo</td></tr>
</table>
Esta es la forma más simple ...
__________________
Marco de Arica (Chile)