title: Naming file to save when php export to xls
body: <p>My code kinda weird, i don't know what would be the problem of my code.. here's my code.</p>
  
  <pre><code>$project_name = $_POST['project_name'];//example the retrieved data is Testing Project
  $quote_id = $_POST['quote_id'];//example the retrieved data is 34425
  $date = date("M/d/y");
  $as_agent = $_POST['as_agent'];//example the retrieved data is John Doe
  
  $name_for_project = $project_name.' '.$quote_id.' '.$date.' '.$as_agent;
  
  
  header("Content-Type: application/vnd.ms-excel");
  header("Expires: 0");
  header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  header("content-disposition: attachment;filename='".$name_for_project.".xls'");
  ob_start();
  
  //The rest of the code is Workbook
  echo"
      &lt;?xml version='1.0'?&gt;
      &lt;?mso-application progid='Excel.Sheet'?&gt;
      &lt;Workbook
  xmlns='urn:schemas-microsoft-com:office:spreadsheet'
  xmlns:o='urn:schemas-microsoft-com:office:office'
  xmlns:x='urn:schemas-microsoft-com:office:excel'
  xmlns:ss='urn:schemas-microsoft-com:office:spreadsheet'
  xmlns:html='http://www.w3.org/TR/REC-html40'&gt;
  &lt;DocumentProperties xmlns='urn:schemas-microsoft-com:office:office'&gt;
      &lt;Version&gt;11.8036&lt;/Version&gt;
  &lt;/DocumentProperties&gt;
  &lt;ExcelWorkbook xmlns='urn:schemas-microsoft-com:office:excel'&gt;
      &lt;WindowHeight&gt;6795&lt;/WindowHeight&gt;
      &lt;WindowWidth&gt;8460&lt;/WindowWidth&gt;
      &lt;WindowTopX&gt;120&lt;/WindowTopX&gt;
      &lt;WindowTopY&gt;15&lt;/WindowTopY&gt;
      &lt;ProtectStructure&gt;False&lt;/ProtectStructure&gt;
      &lt;ProtectWindows&gt;False&lt;/ProtectWindows&gt;
  &lt;/ExcelWorkbook&gt;";
  
      //so on and so fort...
  </code></pre>
  
  <p>When this code runs it only capture the $project_name value.. Please Help me... Thank you..</p>