Hola Gente..... ya hice una prueba con lo que me pusieron, pero tengo un problema, cuando digito la información de Formulario y le doy click al boton de enviar información me sale una ventanita para salvar el archivo en excel, lo salvo pero en el archivo no hay nada.....

, aqui les pongo el código para que lo vean y me digan que puedo hacer. Como siempre muchas gracias
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PHP to Excel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=NombreDelExcel.xls");
if($_POST['Submit'])
{
// Tomo la información del Formulario
$name = $_POST['name'];
$email = $_POST['email'];
$telefono = $_POST['telefono'];
}
?>
<form id="contact" name="contact" action="<? echo $_SERVER['class/PHP_SELF'];?>" method="post" onSubmit="return validateme(this)">
<div align="center">
<table width="518" border="0" cellpadding="5" cellspacing="3">
<tr>
<th width="230" scope="col"><div align="left"><b>Nombre</b></div></th>
<th width="253" rowspan="6" scope="col"><div align="left">
</div>
<div align="left"> </div></th>
</tr>
<tr>
<th scope="row"><div align="left">
<input name="name" type="text" id="namefrom" />
</div></th>
</tr>
<tr>
<th scope="row"><div align="left"><b>E-mail</b></div></th>
</tr>
<tr>
<th scope="row"><div align="left">
<input name="email" type="text" id="email2" />
</div></th>
</tr>
<tr>
<th scope="row"><div align="left">Teléfono</div></th>
</tr>
<tr>
<th scope="row"><div align="left">
<input name="telefono" type="text" id="telefono2" />
</div></th>
</tr>
<tr>
<th scope="row"> </th>
<td><div align="right">
<input type="submit" name="Submit" value="Enviar Información" />
</div></td>
</tr>
</table>
</div>
</form>
</body>
</html>