Neat little html to an excel trick in the very top of you php prior to sending anything out to the user you can place these lines of code wich will cause the users pc to launch excel to view the html this comes in handy for me if i want to give the user information in excel already nicely formatted and pretty. try it out and see for your self
header("Content-Type: application/x-msexcel");
header("Content-Location: " . "data.html");
header('Content-Disposition: name="data.html"');