prova così:
e nel form:codice:<script language="javascript"> <!-- function test(){ document.getElementById("i1").disabled=document.myform.file[0].checked; document.getElementById("i0").disabled=!document.myform.file[0].checked; document.getElementById("i1").style.display=!document.myform.file[0].checked?"inline":"none"; document.getElementById("i0").style.display=document.myform.file[0].checked?"inline":"none"; } --> </script>
<input name="file" type="radio" value="pc" checked onclick="test()">
<input name="file" type="radio" value="internet" onclick="test()">
<input name="immagine0" type="text" id="i0">
<input name="immagine0" type="file" id="i1">

Rispondi quotando