title: exporting excel file but it is in web page format
body: <p>HI i am exporting my report in .xls format but when i try to save the file after some editing it alerts me that file type is Web Page. I want it to be in excel 97-2003 Workbook.
  Following is my code</p>
  
  <pre><code>if($exportType == "xls")
  {
  
      header("Content-type: application/x-msexcel");
      header("Content-Disposition: attachment; filename=DD_Report.xls"); 
      header("Content-Description: PHP/MYSQL Generated Data"); 
      header('Content-Type: application/vnd.ms-excel');
  header('Expires: 0');
      header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 
  
      $strMainStart   = "&lt;table align='center' border='1' width='100%'&gt;";
      $strMainEnd     = "&lt;/table&gt;";
      $strRowStart    = "&lt;tr&gt;";
      $strRowEnd      = "&lt;/tr&gt;";
      $strColumnStart = "&lt;td&gt;";
      $strColumnEnd   = "&lt;/td&gt;";
      $strBoldStart   = "&lt;b&gt;";
      $strBoldClose   = "&lt;/b&gt;";
  }
  </code></pre>