Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/04/2011, 18:16
juanherrera69
 
Fecha de Ingreso: marzo-2011
Mensajes: 13
Antigüedad: 13 años, 1 mes
Puntos: 0
Respuesta: sobre descarga web

mmm me dejaste igual yo se que aqui esta la respuesta pero no se como colocarla mira

el php es este

<?php

//Código generado por php.net
$f = $_GET["file"];
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$f\"\n");
$fp=fopen("$f", "r");
fpassthru($fp);

?>

y el html es este

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Pagina nueva 1</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<p><input type="text" name="T1" size="20"><input type="submit" value="Enviar" name="B1"><input type="reset" value="Restablecer" name="B2"></p>
</form>

</body>

</html>

la pregunta es donde pongo la funcion?