bueno ya lo he lograo yo solo... para quien le interese ^^:
Código PHP:
<html>
<head>
<script>
function calcula(){
if (document.forms[0].opcion1.checked==true){
document.forms[0].opcion1.value= "1";
}else{
document.forms[0].opcion1.value= "0";
}
if (document.forms[0].opcion2.checked==true){
document.forms[0].opcion2.value= "2";
}else{
document.forms[0].opcion2.value= "0";
}
if (document.forms[0].opcion3.checked==true){
document.forms[0].opcion3.value= "4";
}else{
document.forms[0].opcion3.value= "0";
}
if (document.forms[0].opcion4.checked==true){
document.forms[0].opcion4.value= "8";
}else{
document.forms[0].opcion4.value= "0";
}
return resultado();
}
function resultado(){
var x=parseInt(document.forms[0].opcion1.value)
var y=parseInt(document.forms[0].opcion2.value)
var z=parseInt(document.forms[0].opcion3.value)
var t=parseInt(document.forms[0].opcion4.value)
document.forms[0].resultado.value = eval('x + y + z + t');
}
</script>
</head>
<body>
<form method="post">
<table>
<tr>
<td><input type="checkbox" name="opcion1" value="0" onclick="calcula()">+1</td>
<td><input type="checkbox" name="opcion2" value="0" onclick="calcula()">+2</td>
</tr><tr>
<td><input type="checkbox" name="opcion3" value="0" onclick="calcula()">+4</td>
<td><input type="checkbox" name="opcion4" value="0" onclick="calcula()">+8</td>
</tr><tr>
<td colspan="2"><input type="text" name="resultado" value="0" size="12" readonly></td>
</tr>
</table>
</form>
</body>
</html>