echo '<form method="POST">'."\n";
$n = 1;
foreach ($questions as $qkey => $question) {
echo "\t"."<h2>".$n.". ".$question['q'].'</h2>'."\n";
foreach ($question['a'] as $akey => $value) {
echo "\t"."\t".'<input type="radio" name="q['.$qkey.']" value="'.$akey.'">'.$value.'<br>'."\n";
}
$n++;
}
echo '<input type="submit" value="Отправить" name="send"></form>';
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.