$ques | ";
// Generate the response alternatives.
$rno = 1;
echo "";
foreach($parts as $resp) {
$resp = htmlspecialchars($resp);
$resp = preg_replace('/ /', ' ', $resp);
if($rno > 1) echo " \n";
echo "$resp";
++$rno;
}
echo " |
\n";
++$qno;
}
fclose($surdef);
// Close the HTML stuff, and generate submit and clear buttons.
echo <<