Ver Mensaje Individual
  #17 (permalink)  
Antiguo 15/12/2012, 20:40
arlene90
 
Fecha de Ingreso: septiembre-2012
Mensajes: 103
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: llenar arreglo con checkbox y caja de texto

hice esto:

Código PHP:
$cedula$_GET['cedula'];
$id$_GET['id'];

if ((isset(
$_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
    
    
$i=0;
   
$sociales="";
    
foreach (
$_POST['id_progsocial'] as $social){
   
$id_progsocial[$i]=$social;
   
$sociales="".$id_progsocial[$i].", ".$sociales."";
   
$i++;



$insertSQL "INSERT IGNORE INTO rsptas_progsocial (identificacion, id_progsocial,  ano ) VALUES ('$cedula','".$sociales."', '{$_POST['ano']}' )";

    

  
mysql_select_db($database_conexion$conexion);
  
$Result1 mysql_query($insertSQL$conexion) or die(mysql_error());
  
  if(
$Result1==TRUE){
      
$mensaje="Se ingreso correctamente el solicitante";
      
$prematricula=  '<td><a href="http://www.forosdelweb.com/f18/prematricula/prematricular.php?id='.$id.' & cedula='.$cedula.'">Prematricular</a></td></tr>';
      }
}
 

Pero solo me inserta un check en la bd

Última edición por arlene90; 15/12/2012 a las 21:04