<?php
// index.php — главная
$course = [
'title' => 'Основы PHP',
'author' => 'Иван Петров',
];
?>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Главная</title>
</head>
<body>
<h1>Главная</h1>
<h3><?= htmlspecialchars($course['title']) ?></h3>
<p>Преподаватель: <?= htmlspecialchars($course['author']) ?></p>
<hr>
<!-- Кнопка открывает форму в новой вкладке -->
<form action="register.php" method="get" target="_blank">
<button type="submit">Регистрация на курс</button>
</form>
</body>
</html>