Here is the actual page: http://www.sm4software.com/sm4analysis/sm4analysisview.php?uniqueid=9
with 4 sample Yes No fields (all assumptions above are fine). However, everything is stored as variables. The ACTUAL field names are 1, 2, 3, 4...which is probably confusing me, as the total should be the total of the Yes answers.
Here is the actual code saved with a .txt extension so you can read it and open it. Change the .txt to .php after you save it.