
06/06/2006, 05:52
|
 | | | Fecha de Ingreso: marzo-2003
Mensajes: 997
Antigüedad: 22 años Puntos: 1 | |
sustituye el 1 por el valor que almecenes en la bd cuando esta marcado imaginemos que el campo se llama target y que los valores que almacena son _blank y _parent
entonces quedaria algo asi :
if ($resultados['target']=="_blank"){
echo "<input name=\"target\" type=\"radio\" value=\"_blank\" checked=\"checked\">blank</option>";
echo "<input name=\"target\" type=\"radio\" value=\"_parent\" >parent</option>";
}
else {
echo "<input name=\"target\" type=\"radio\" value=\"_blank\" blank</option>";
echo "<input name=\"target\" type=\"radio\" value=\"_parent\" checked=\"checked\">parent</option>";
}
Un Saludo |