Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/05/2009, 18:59
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Formulario Dinámico con PhP y javascript

Crea tus inputs con nombres tipo array:

<input name="item[]" type="text" />
<input name="item[]" type="text" />
<input name="item[]" type="text" />
<input name="item[]" type="text" />

Luego, en tu script que inserta, recorres usando un foreach u algun otro bucle:

foreach($_POST['item'] as $key => $value) {
//inserto
}