Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/12/2013, 19:27
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: Guardar valores de formulario creado dinámicamente

Código PHP:
Ver original
  1. if(isset($_POST['suno']))
  2.             {
  3.                 for($i=0;$i<$nf;$i++)
  4.                     {
  5.                         $posic=mysqli_data_seek($l,$i); // WTF???
  6.                         $fi=$l->fetch_row(); // WTF??
  7.                         $nota[$i]=($_POST[$i]); // WTF??
  8.                         $fallas[$i]=($_POST[$i+100]); // WTF??
  9.                         $inno=$db_connect->query("INSERT INTO notas (idnot,tiu,doc,fallas,retardos,nota,code1,code2) VALUES (NULL,'$fi[0]',Boggiepopphantom,'$fallas[$i]',0,'$nota[$i]',123,123)"); // mmm // WTF??
  10.                     }
  11.             }

Código PHP:
Ver original
  1. echo(var_dump($_POST));
agrega eso al inicio del script y te vas a dar cuenta como vienen los datos
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios