How to use this questionnaire scoring system
You can create your own questionnaires and get this program to score them for you.
Simply follow the format given below.
Initialise the form using this:
<form method="post" action="PATH_TO_SCRIPT/questans.php">
And create three hidden inputs (bits you can change are in bold):
<input type="hidden" name="questionreplystart" value="You are">
<input type="hidden" name="questionreplyend" value="wrong.">
<input type="hidden" name="questiontitle" value="Just how wrong are you">
The first two give an answer: 'You are XX% wrong.', and the third one gives the page title: 'Just how wrong are you'.
To select custom responses for different scores, use the following. The numbers in square brackets must be integers (1, 2, 3 etc) from a minimum of 0 upto a maximum of 100:
<input type="hidden" name="customresponse[0]" value="You are a wuss.">
<input type="hidden" name="customresponse[50]" value="You are just an average person.">
<input type="hidden" name="customresponse[90]" value="You need to get out more.">
In this case, if you score between 0 and 49, the message 'You are a wuss.' will be displayed, if you score between 50 and 89, the message 'You are just an average person.' will be displayed and if you score between 90 and 100, the message 'You need to get out more.' will be displayed.
For each question, create a hidden input giving the maximum score for that question. If using checkboxes, this should be the number of checkboxes. If using radio inputs, this should be the highest value of the inputs. The number in the square brackets should start from 1 and increase by 1 for each question:
<input type="hidden" name="qtot[1]" value="5">
Then create the inputs. If you want just one answer, use a radio input. The number in the square brackets should match the one in the hidden input. The value should be the score for that option:
<input type="radio" name="q[1]" value="0"> Option 1
<input type="radio" name="q[1]" value="1"> Option 2
<input type="radio" name="q[1]" value="2"> Option 3
If you want more than one answer, use checkboxes. The number in the first square brackets should match the one in the hidden input. The number in the second square brackets should start from 1 and increase by 1 for each option. The value should always be 1:
<input type="checkbox" name="q[1][1]" value="1"> Option 1
<input type="checkbox" name="q[1][2]" value="1"> Option 2
<input type="checkbox" name="q[1][3]" value="1"> Option 3
To download the script(s), and see the script license, use the links on the navigation panel at the top of this page.