dovresti fare un controllo di questo tipo:

all' onLoad del body richiami la funzione:

function bloccaInput(){

if(document.form.a.value!=""){
document.form.a.disabled=true;
}
if(document.form.b.value!=""){
document.form.b.disabled=true;
}
if(document.form.c.value!=""){
document.form.c.disabled=true;
}
}


dove il body con il form

<body onLoad="bloccaInput();">
<form action="" method="get" name="form">
<input name="a" type="text" value="">
<input name="b" type="text" value="aaa">
<input name="c" type="text" value="">
</form>
</body>



ciao