Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/07/2009, 07:13
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: Recoger variables dinamicas.

Te resultará más práctico usar un array de elementos, usando un mismo name, por ejemplo:
Código html:
Ver original
  1. <input type="hidden" name="txtid[]" value="valor" />
  2. <!-- ... -->
  3. <input type="hidden" name="txtid[]" value="valor" />
  4. <!-- ... -->
  5. <input type="hidden" name="txtid[]" value="valor" />
  6. <!-- ... -->
  7. <input type="hidden" name="txtid[]" value="valor" />
  8. <!-- ... -->
Y al momento de recibir los datos lo recorres con un foreach:
Código php:
Ver original
  1. foreach ($_GET['txtid'] as $value) {
  2.     /* Procesar $value */
  3. }
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.