Re: Problemas con variables

From: Date: Tue, 22 Jan 2002 15:15:36 +0000
Subject: Re: Problemas con variables
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-18118@lists.php.net to get a copy of this message
Sorry me di cuenta recien de esto: echo $HTTP_POST_VARS['foto']['name']; en realidad debe ser linea 2 : echo $HTTP_POST_FILE['foto']['name']; linea 3 : echo $HTTP_POST_FILE['foto']['type]; pero asi me sale el siguiente error: Warning: Undefined index: foto in recive.php on line 2 Warning: Undefined index: foto in recive.php on line 3 PHP Warning: Undefined index: foto in recive.php on line 2 PHP Warning: Undefined index: foto in recive.php on line 3 At 12:09 22-01-2002 -0300, you wrote:
Amigos: Tengo el siguiente problemas tengo un formulario en el cual tengo este codigo : <FORM METHOD="POST" ACTION="recive.php"> <INPUT TYPE="file" NAME="foto" enctype="multipart/form-data"> <INPUT TYPE="submit"> y en recive esto : <?php echo $HTTP_POST_VARS['foto']['name']; echo $HTTP_POST_VARS['foto']['type']; ?> y lo unico que me imprime en pantalla es esto : CC no se que estare haciendo mal, ya que en script anteriores si me aparecen, Estoy usando PHP 4.1.1 en WinNT 4.0 pero en mis script anteriores tengo PHP 4.0.5 y win2000 Professional y el mismo corre tb en win98 Agradesco cualquier ayuda Aldo Quezada BSP-INSPECTOR --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com


« previous php.general.es (#18118) next »