I believe the problem is in the following java script code segment. A diagnostic php command is highlighted in red. The correct execution of the code is shown in the first screen shot. The incorrect execution of the code is shown in the second screen shot. Some questions are presented correctly and some are not as shown in these two screen shots. I have been unable to figure out what the difference is. This sample was created using Ubuntu 12.04 and Firefox. I get the same results with Chrome on Ubuntu and with IE on MS Windows Vista.
I would appreciate any ideas what might be wrong or where I might look next.
Thanks, Dan H
First screen shot:
<div style="width: 80%">
if ($question_head != "") echo $question_head."<br />";
echo $question_text."<br />";
txt=txt+"<body><b><?php echo $question_text;?></b></body>";
else // Internet Explorer