
24/03/2019, 18:37
|
 | Moderador | | Fecha de Ingreso: febrero-2008 Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 17 años Puntos: 1146 | |
Respuesta: Descargar PDF al hacer submit en formulario Ya intentaste con
Código PHP:
Ver original$file = __DIR__.'/archivo.pdf'; header("Content-Description: File Transfer"); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=" . basename($file));
|