necesito q al seleccionar un input type radio aparesca un input type text en el mismo formulario como seria ????
yo lo tengo asi con php pero no funciona........
o no se si eso lo tengo que hacer con javascript........
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
 
<body>
<p> </p>
<p>
  <input name="garantia" type="radio" value="fiador" ; />
<p>
  <input name="garantia" type="radio" value="hipoteca" ; />
    </p>
</p>
<p>
 
 
 
 
  <?
 
if ($garantia=="fiador")
{
 ?>
  <input name="cedfiador" type="text" size="8" maxlength="8" />
   <?
}
?>
 
 
</p>
</html> 
   
 



