table 내용 엑셀로 저장하기

반응형
export.html

<?
header("Content-type: application/vnd.ms-excel");
header("Content-type: application/vnd.ms-excel;charset=KSC5601" );
header("Content-Disposition: attachment; filename=data.xls" );
header("Content-Description: PHP5 Generated Data" );
?>

<html>
<body>
<table>
  <tr><td width="50">1</td><td width="50">S</td></tr>
  <tr><td width="50">2</td><td width="50">Y</td></tr>
  <tr><td width="50">3</td><td width="50">S</td></tr>
  <tr><td width="50">4</td><td width="50">D</td></tr>
  <tr><td width="50">5</td><td width="50">O</td></tr>
  <tr><td width="50">5</td><td width="50">C</td></tr>
  <tr><td width="50">5</td><td width="50">U</td></tr>
</table>
</body>
</html> 



반응형

댓글()