Ver Mensaje Individual
  #11 (permalink)  
Antiguo 19/03/2009, 20:54
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: Array - consulta

Pues ve el link que te deje, es sencillo:
Código html:
Ver original
  1. <input type="text" name="matriz[0]" value="" />
  2. <input type="text" name="matriz[1]" value="" />
  3. <input type="text" name="matriz[2]" value="" />
  4. <input type="text" name="matriz[3]" value="" />

y en PHP:
Código php:
Ver original
  1. <?php
  2. foreach($_POST['matriz'] as $indice => $valor) {
  3.         echo "$indice => $valor";
  4. }

Saludos.