Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/09/2009, 10:42
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problema con array de input=text

Puedes usar un array doble:
Código HTML:
Ver original
  1. <input width="50px" type="text" name="imgs[0][]"/>
  2. <input type="hidden" value="12" name="imgs[0][]"/>

Así ciclas la matriz:
Código PHP:
Ver original
  1. foreach ($_POST['imgs'] as $data) {
  2.       list ($order, $id) = $data;
  3.  
  4.       echo $order;
  5.       echo $id;
  6. }

Saludos.