Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/02/2007, 16:13
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 8 meses
Puntos: 2135
Re: formulario y PHP

los radios tienen la propiedad de selected="selected", asi puedes dibujar tu radio.

Código PHP:
if( $valor ) {
echo 
'<input type="radio" name="nombre" valor="elvalor" selected="selected">';
} else {
echo 
'<input type="radio" name="nombre" valor="elvalor">';