Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/10/2011, 16:34
Avatar de chwc
chwc
 
Fecha de Ingreso: julio-2008
Ubicación: Buenos Aires ! :D
Mensajes: 814
Antigüedad: 16 años, 7 meses
Puntos: 103
Respuesta: radio button con while y marcarlo

Cita:
<?
$checked = ' checked="checked"';
while($row = mysql_fetch_array($select)){?>
<div>
<span><?=$row['nombre']?></span><br>
<input type="radio" name="valor[<?=$row['id']?>][]" value="<?=$row['id']?>" <?=$checked?> />
</div>
<?
$checked = '';
}?>
Saludos