if($_POST["excel"] != "") { echo ''; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=".$this->xlsFileName); echo $this->toExecl; return; } ?>