Проверка

if($_POST['send']){ $balls = 0; foreach ($questions as $key => $value) { if($_POST['q'][$key]===$right[$key]) $balls++; } echo "Баллы: ".$balls; } else echo "<p>Отправьте результат</p>"."\n";

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.