<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=bookings_canceled_".date("Y-m-d").".xls");
header("Pragma: no-cache");
header("Expires: 0");
echo str_replace("\'",'"',$_POST['titulo']).'<br><br>';
echo str_replace("\'",'"',$_POST['datos_a_enviar']);
?>