mmmmmm nada de nada ...
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Código PHP:
<?php
if($_GET['idesp'] == TRUE){
$enlace = $path."../ventas/simulador/".$idesp;
header ("Content-Type: application/octet-stream");
header ("Content-Disposition: attachment; filename=\"$idesp\"");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
}//fIN DEL IF
if($_GET['idcli'] == TRUE){
$enlace = $path."../ventas/simulador/".$idcli;
header ("Content-Type: application/octet-stream");
header ("Content-Disposition: attachment; filename=\"$idcli\"");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
}//fIN DEL IF
if($_GET['idhot'] == TRUE){
$enlace = $path."../ventas/simulador/".$idhot;
header ("Content-Type: application/octet-stream");
header ("Content-Disposition: attachment; filename=\"$idhot\"");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
}//fIN DEL IF
?>