diff --git a/index.php b/index.php index 63697ce689f..5f927fec902 100644 --- a/index.php +++ b/index.php @@ -62,7 +62,7 @@ session_destroy(); } -if ($fvalue) +if ($fvalue || $fvalue == "0") { if ($fvalue == " ") { @@ -108,7 +108,7 @@ } //This section handles the question number that will be answered - moving backwards and forwards as required -if ($_POST['mandatory'] == "Y" && (!$_POST['fvalue'] || $_POST['fvalue'] == " ") && !$multimandatory) //if the last question was mandatory but there is no data +if ($_POST['mandatory'] == "Y" && ($_POST['fvalue'] != "0" && !$_POST['fvalue'] || $_POST['fvalue'] == " ") && !$multimandatory) //if the last question was mandatory but there is no data { //Repeat last question until an answer is shown if ($move == " last ") {$move = " next >> ";} //avoids going to submit if last question isn't answered @@ -1132,7 +1132,9 @@ echo "\t\n"; echo "\t\t\n"; echo "\t\t\t\n"; - echo "\t\t\t
\n"; + echo "\t\t\t
\n"; echo "\t\t\tOnly numbers can be entered in this field\n"; break; case "S": //SHORT FREE TEXT