Create cgi Perl script for a one page question quiz with the following attributes:
The survey page can be seen at [url removed, login to view]
The questions are numbered 1 – 56 with five radio buttons arrayed horizontally underneath with a short text description on each end of the row. (Likert scale) The buttons have hidden values from 1 to 5 from left to right.
On submit the results are sent to cgi_bin/[url removed, login to view] (the desired script).
The submit button will cause the following actions:
<form method="post" action="cgi-bin/results.cgi" onSubmit="return checkRadios(this);">
for the cgi script to sum the value of each checked button 1, 2, 3, 4, or 5 into one of six factors (eg. Factor 1 calculated from: radio03 + radio07 + radio15 + radio32 + radio 44 + radio50 + radio56 / num radio buttons in each factor). This will result in average scores for the six factors.
The average value for each factor will be posted (to a table) to a new page and this page will be an explanation of one of 6 factors (pages already completed). In other words, the factor with the highest average value will determine which page is posted with the score and a detailed explanation of what the score means. A sample page (without table calculated averages) can be seen at [url removed, login to view]
The code must be browser compliant in all browsers
A working demo of the script is required before payment.