Ver Mensaje Individual
  #5 (permalink)  
Antiguo 18/12/2007, 09:12
RALIO
 
Fecha de Ingreso: julio-2007
Mensajes: 83
Antigüedad: 16 años, 9 meses
Puntos: 1
Re: como leo las variables arreglo ???

Cita:
Iniciado por mauled Ver Mensaje
Pues debe ser algo con tu código, porque yo hize lo siguiente y no tuve ningun problema:

Código PHP:
<?php

if(isset($_POST["datos"]))
{
    
var_dump($_POST["datos"]);
}

?>
<body>
<form action="" method="POST">
<input type="text" name="datos[]"/>
<input type="text" name="datos[]"/>
<input type="text" name="datos[]"/>
<input type="text" name="datos[]"/>
<input type="submit" />

</form>
</body>
Te sugiero que postees tu código, para decirte en donde puede radicar el problema.

Saludillos.
while(list($key,$value) = each($_FILES[contenido][name]))
{

if(!empty($value)){
$filename = $value;
$add ='../contenido/'. $filename;

copy($_FILES[contenido][tmp_name][$key], $add);
chmod("$add",0777);


$idescrip = $_POST['descripcion'];
foreach ($idescrip as $dato)
{
echo $dato;
}

//$sqlImagenes->insertarRegistro("INSERT INTO `contenido` ( `noticia_id`, `nombre`, `descripcion`, `fecha` ) VALUES ( $idNoticia , '$filename','$descripcion' , NOW())");

}

}

ese es men ...