Re: Problemas con variables
| From: | Gordon Gekko | Date: | Tue, 22 Jan 2002 17:31:38 +0000 |
| Subject: | Re: Problemas con variables | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-18141@lists.php.net to get a copy of this message | ||
veamos ... tengo 2 archivos base.phtml y recibir.phtml
--- inicio base.phtml ----
<html>
<body>
<FORM METHOD="POST" ACTION="recibir.phtml"
enctype="multipart/form-data">
<INPUT TYPE="file" NAME="foto" >
<INPUT TYPE="submit">
</form>
</body>
</html>
--- fin base.phtml ---
--- inicio recibir.phtml ---
<html>
<body>
<?php
echo $HTTP_POST_FILES["foto"]['name'];
echo "<BR>";
echo $HTTP_POST_FILES["foto"]['size'];
echo "<BR>";
echo $HTTP_POST_FILES["foto"]['type'];
echo "<BR>";
echo $HTTP_POST_FILES["foto"]['tmp_name'];
?>
</body>
</html>
--- fin recibir.phtml ---
el resultado de recibir.phtml cuando subo el fichero prueba.png es
--- inicio resultado recibir.phtml ---
prueba.png
358948
image/x-png
/tmp/phpAWXlrQ
--- Fin resultado recibir.phtml ---
Todo funciona perfectamente .... TRUCO ... pon en tu fichero receive.php un
phpinfo(); para ver que llega ... siempre es de gran ayuda ...