¿Algo así?
Código PHP:
<html>
<head>
<script type="text/javascript">
/**
* By Panino5001: http://forosdelweb.com/miembros/panino5001
*/
function addEvent(obj,type,fun){
if(obj.addEventListener){
obj.addEventListener(type,fun,false);
}else if(obj.attachEvent){
var f=function(){
fun.call(obj,window.event);
}
obj.attachEvent('on'+type,f);
obj[fun.toString()+type]=f;
}else{
obj['on'+type]=fun;
}
}
/**
* By somebody else ;-p
*/
window.onload = function(){
obj = document.getElementsByName('enableDisableFoo')[0];
addEvent(obj, 'click', function(){
objFoo = document.getElementsByName('foo[]');
for(var i in objFoo){
objFoo[i].disabled = this.checked;
}
});
}
</script>
</head>
<body>
<input type="checkbox" name="enableDisableFoo" />
<table>
<tr>
<td><input type="text" name="foo[]" value="foo1" /></td>
</tr>
<tr>
<td><input type="text" name="foo[]" value="foo2" /></td>
</tr>
<tr>
<td><input type="text" name="foo[]" value="foo3" /></td>
</tr>
<tr>
<td><input type="text" name="foo[]" value="foo4" /></td>
</tr>
<tr>
<td><input type="text" name="foo[]" value="foo5" /></td>
</tr>
</table>
</body>
</html>
Te recomiendo que leas un poco de javascript para que te puedas desenvolver.