I've got a "quiz" (a test really) of about 20 questions, each question has a set of 5 radio buttons (your opinion from 'fully disagree to fully agree', you could say) with which you get points from 1 to 5. Submitting the form takes you to an invisible results page which redirects to one of three actual Results pages which the user will see, according to the total score from the form.

In theory anyway...My problem is, there's something wrong with my calculate function because I can't seem to get the form to return the total score, I get a zero (0).

In detail:...

The form is called 'test'.
For each answer I've got a hidden field next to it called 'score1', 'score2' etc. And a hidden field for the total score called 'total_score'.
For the radio buttons I use the following (this is option 1 for question 1):