In Javascript? Certainly.
Code:
<form action="" method="">
<table style="border-style:none;border-width:0;">
<tr>
<th>0</th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
</tr>
<tr>
<th>Question One:</th>
<td><input type="radio" value="0" name="q1" /></td>
<td><input type="radio" value="1" name="q1" /></td>
<td><input type="radio" value="2" name="q1" /></td>
<td><input type="radio" value="3" name="q1" /></td>
<td><input type="radio" value="4" name="q1" /></td>
</tr>
<tr>
<th>Question Two:</th>
<td><input type="radio" value="0" name="q2" /></td>
<td><input type="radio" value="1" name="q2" /></td>
<td><input type="radio" value="2" name="q2" /></td>
<td><input type="radio" value="3" name="q2" /></td>
<td><input type="radio" value="4" name="q2" /></td>
</tr>
<!-- And so on... -->
</table>
<p id="total" style="height: 1em;"></p>
<input type="button" onclick="
var e = this.form.elements, i, j, total = 0;
for(j=1;e['q' + j];j++)
total += parseInt(e['q' + j].value);
document.getElementById('total').innerHTML = total;
" />
</form>
Bookmarks