Mejor esto que lo anterior no funciona: Código PHP:
<html>
<head>
<title>Untitled</title>
<script>
function cambio(formulario){
if(formulario.texto2.value!=''){
formulario.elements[0].disabled=true
formulario.elements[1].disabled=true}
else{formulario.elements[0].disabled=false
formulario.elements[1].disabled=false}
}
</script>
</head>
<body>
<form name='enviar' method='POST' action='pagina2.htm'>
<input type='radio' name='texto' value='texto1'>
<input type='radio' name='texto' value='texto1'>
<input type='text'
onkeypress="cambio(this.form)" name='texto2'>
</form>
</body>
</html>