<?php
require '2.php';
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h2> Введите свои данные!</h2>
<form action="" method=POST>
ФИО <br>
<input type=text name="full_name"><br>
Почта <br>
<input type=text name="email"><br>
Номер телефона<br>
<input type=text name="phone"><br><br>
<input type=submit value="Отправить">
<input type=reset value="Отменить">
<?php if (!empty($result)): ?>
<hr>
ФИО: <?= $result['full_name'] ?><br>
email: <?= $result['email'] ?><br>
phone: <?= $result['phone'] ?><br>
<?php endif ?>
</form>
</body>
</html>