Hi.
First of all, can you modify the name of the input fields? I have made this here. Try the next code. If i have understood you, it code will help you 🙂
<form action"forum.php" method="post">
<input type=radio name=section1 value="2">
<input type=radio name=section2 value="5">
<input type=radio name=section3 value="40">
<input type="submit">
</form>
<?
for ($i="1";$i<="24";$i++) {
eval( "\$total[\$i] = \$section".$i.";" );
$sum=$sum+$total[$i];
}
echo $sum;
?>