Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/04/2012, 10:07
Bugger
 
Fecha de Ingreso: septiembre-2010
Ubicación: /home/
Mensajes: 103
Antigüedad: 13 años, 7 meses
Puntos: 17
Respuesta: Recoger valores de Input Text Dinámicos

Hola tarimo

te contesté aquí -> http://www.forosdelweb.com/f18/input-text-dinamicos-398915/#post4161587

Código PHP:
echo "<tr>";      
echo 
"<td width='40'><center>   ".$result['no']. "  </center></td>"
echo 
"<td>   ".$result['matricula']. "  </td>"
echo 
"<td>   ".$result['coche']. "  </td>"
echo 
"<td><center>   <input type='text' size='3' name='matricula[]' value='".$result['matricula']."'  />  </center></td>";  // aqui cambie el name y te puse el value la matricula
echo "<tr>"
entonces, si eso está dentro de un form, para recoger las variables de matricula:

Código PHP:
<?php
if(isset($_POST['matricula'])) { // Compruebas que llega algo con ese nombre
      
foreach($_GET['matricula'] as $valor) { // Recorremos los valores que nos llegan
            
echo $valor."<br>"// imprimimos el valor 
      
}
}
?>