Código PHP:
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form>
Quiero decirle algo:<br>
<input type="radio" name="pepe" value="1" onclick='document.forms[0].elements["textoajuan"].disabled=true;document.forms[0].elements["textoapepe"].disabled=false;'>a Pepe<br>
<input type="radio" name="pepe" value="2" onclick='document.forms[0].elements["textoajuan"].disabled=false;document.forms[0].elements["textoapepe"].disabled=true;'>a Juan
<br><br>
Texto a Juan:<input type=text name="textoajuan"><br>
Texto a Pepe:<input type=text name="textoapepe">
</form>
</body>
</html>