Cita:
Iniciado por Alexis88 ¿Y cómo le vas a asignar el dato entonces?
quiza no entendí la pregunta!!!
Por ejemplo en una lista desplegable de otro form tiene el select asi:
Código HTML:
<select name="Clientes" id="Clientes" autofocus="autofocus" class="button_cita">
<option value="0">--Seleccionar--</option>
<option value="0"></option>
<?php
do {
?>
<option value="<?php echo $row_Desplegable_clientes['idCliente']?>" <?php if (!(strcmp($row_Desplegable_clientes['idCliente'], ""))) {echo "SELECTED";} ?>><?php echo $row_Desplegable_clientes['txtApellidos']; ?>, <?php echo $row_Desplegable_clientes['txtNombre']?></option>
<?php
} while ($row_Desplegable_clientes = mysql_fetch_assoc($Desplegable_clientes));
$rows = mysql_num_rows($Desplegable_clientes);
if($rows > 0) {
mysql_data_seek($Desplegable_clientes, 0);
$row_Desplegable_clientes = mysql_fetch_assoc($Desplegable_clientes);
}
?>
</select>
Pero en las opciones de radio buton no lo tengo, tengo esto:
Código HTML:
<form action="<?php echo $editFormAction; ?>" method="post" name="form7" id="form7">
<table width="100%">
<tr valign="baseline">
<td>
<input name="txtAcciones" type="radio" value="0" checked="checked" style="float:left" onclick="form7.submit()"><p style="float:left;color:#000">Pendiente</p>
</td>
<td>
<input name="txtAcciones" type="radio" value="1" style="float:left" onclick="form7.submit()"><p style="float:left;color:#090">Confirmar</p>
</td>
</tr>
<tr valign="baseline">
<td>
<input name="txtAcciones" type="radio" value="2" style="float:left" onclick="form7.submit()"><p style="float:left;color:#B05C00">No acudió</p>
</td>
<td>
<input name="txtAcciones" type="radio" value="3" style="float:left" onclick="form7.submit()"><p style="float:left;color:#F00">Cancelar</p>
</td>
</tr>
<tr valign="baseline">
<td align="center">
<input name="txtAcciones" type="radio" value="4" style="float:left" onclick="javascript:eliminarCita(<?php echo $row_CitasHoy['idCita']; ?>)"><p style="float:left;color:#000">Eliminar cita</p>
</td>
<td> </td>
</tr>
<tr valign="baseline" align="right">
<td width="100%" valign="middle" nowrap="nowrap">
<input type="button" value="Cerrar" onclick="javascript:cerrarVentana4();" style="cursor:pointer" class="button" />
</td>
</tr>
<input type="hidden" id = "estadoCita" name = "idCita" />
<input type="hidden" name="MM_update" value="form7" />
</table>
</form>
Es correcto ¿no?
El resto de input radio de ese form funcionan correctamente sin error ninguno.