Ver Mensaje Individual
  #13 (permalink)  
Antiguo 23/02/2009, 14:43
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: Crear automáticamente variable para cada array

O.o Es mas facil hacerlo directamente desde el formulario.

Darle un nombre tipo array al campo:
<input type="text" name="esto_es_un_array[]" />
<input type="text" name="esto_es_un_array[]" />

Y si haces un print_r($_POST['esto_es_un_array']) veras que crea 1 llave por cada campo.