i have a form which displays questions and answers from a database. each answer has a radio button next to it with a particular value. what i want to do is somehow calculate the total from all the radio buttons selected, and then display a comment from a database table according to what the total is. e.g, if they get between 25% and 50%, it will display "not very good etc. Any ideas on how i could do this?