Skip to content

Commit

Permalink
Fixed html coding error - stray "<" before id in case "5" (5 point ch…
Browse files Browse the repository at this point in the history
…oice). Bug found by Chris Coach. Caused non MS web browsers to return the values 'on' or 'off' instead of a numerical value, and subsequently store a result of 'o' in the results table.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@845 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 28, 2004
1 parent cf3c72f commit 915d7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qanda.php
Expand Up @@ -89,13 +89,13 @@
case "5": //5 POINT CHOICE radio-buttons
for ($fp=1; $fp<=5; $fp++)
{
$answer .= "\t\t\t<input class='radio' type='radio' name='$ia[1]' <id='$ia[1]$fp' value='$fp'";
$answer .= "\t\t\t<input class='radio' type='radio' name='$ia[1]' id='$ia[1]$fp' value='$fp'";
if ($_SESSION[$ia[1]] == $fp) {$answer .= " checked";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /><label for='$ia[1]$fp' class='answertext'>$fp</label>\n";
}
if ($ia[6] != "Y") // Add "No Answer" option if question is not mandatory
{
$answer .= "\t\t\t<input class='radio' type='radio' name='$ia[1]' <id='NoAnswer' value=''";
$answer .= "\t\t\t<input class='radio' type='radio' name='$ia[1]' id='NoAnswer' value=''";
if (!$_SESSION[$ia[1]]) {$answer .= " checked";}
$answer .= " onClick='checkconditions(this.value, this.name, this.type)' /><label for='NoAnswer'>"._NOTAPPLICABLE."</label>\n";
}
Expand Down

0 comments on commit 915d7c7

Please sign in to comment.