Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/07/2009, 12:16
Avatar de visitante28
visitante28
 
Fecha de Ingreso: julio-2009
Ubicación: Black Stone City
Mensajes: 128
Antigüedad: 14 años, 9 meses
Puntos: 1
Respuesta: Actualizar Multiples Registros

si mira

<form action="<?php echo $editFormAction; ?>" method="POST" name="form2" id="form2">
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr>
<th background="imagen/barra.png" class="p" scope="col">Id</th>
<th background="imagen/barra.png" class="p" scope="col">Numero</th>
<th background="imagen/barra.png" class="p" scope="col">Nombre </th>
<th background="imagen/barra.png" class="p" scope="col">Dpto</th>
<th background="imagen/barra.png" class="p" scope="col">Suspension</th>
<th background="imagen/barra.png" class="p" scope="col">Vacaciones</th>
<th background="imagen/barra.png" class="p" scope="col">Dias</th>
<th background="imagen/barra.png" class="p" scope="col">Fecha</th>
<th background="imagen/barra.png" class="p" scope="col">Hora</th>
<th background="imagen/barra.png" class="p" scope="col">Regresa</th>
</tr>
<?php do { ?>
<tr>
<th class="t" scope="row"><?php echo $row_Recordset1['id']; ?></th>
<th class="t" scope="row"><?php echo $row_Recordset1['num']; ?></th>
<th class="t"><?php echo ucwords($row_Recordset1['nombre']); ?></th>
<th class="t"><?php echo $row_Recordset1['dpto']; ?></th>
<th><input name="opcion" type="checkbox" id="susp" value="suspension" />
&nbsp;</th>
<th><input name="opcion" type="checkbox" id="vaca" value="vacaciones" />
&nbsp;</th>
<th class="t"><input type="text" name="dias" size="3" />
<th class="t"><input type="text" name="fecha_ini" size="12" /></th>
<th class="t"><input type="text" name="hora" size="5" /></th>
<th class="t"><input type="text" name="fecha_fin" size="12" /></th>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<input type="hidden" name="MM_update" value="form2" />
<input type="submit" name="button" id="button" value="Actualizar registro" />
<span class="t"></span>
</form>

creo que tengo que identificar cada uno de los inputs para saber cual se esta actualizando.. verdad? o como vez