При отправке данных с формы ничего не происходит хелп
Сама форма
<form action="validation-form/zaiv.php" method="post">
<h1>Подать Заявление</h1>
<fieldset id="inputs">
<input name="familia" type="text" placeholder="familia" autofocus required>
<input name="name" type="text" placeholder="name" autofocus required>
<input name="otchestvo" type="text" placeholder="otchestvo" autofocus required>
<input name="City" type="text" placeholder="City" autofocus required>
<input name="Street" type="text" placeholder="Street" autofocus required>
<input name="Numder" type="text" placeholder="Numder" autofocus required>
<input name="seriespassport" type="text" placeholder="seriespassport" autofocus required>
<input name="numberpassport" type="text" placeholder="numberpassport" autofocus required>
<input name="Birthday" type="text" placeholder="Birthday" autofocus required>
</fieldset>
<fieldset id="actions">
<input type="submit" id="submit" value="ПОДАТЬ">
</fieldset>
</form>
<meta charset="utf-8">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="styles.css">
Форма отправки
<?php
session_start();
$familia = filter_var(trim($_POST['familia']),
FILTER_SANITIZE_STRING);
$name = filter_var(trim($_POST['name']),
FILTER_SANITIZE_STRING);
$otchestvo = filter_var(trim($_POST['otchestvo']),
FILTER_SANITIZE_STRING);
$City = filter_var(trim($_POST['City']),
FILTER_SANITIZE_STRING);
$Street = filter_var(trim($_POST['Street']),
FILTER_SANITIZE_STRING);
$Numder = filter_var(trim($_POST['Numder']),
FILTER_SANITIZE_STRING);
$seriespassport = filter_var(trim($_POST['series passport']),
FILTER_SANITIZE_STRING);
$numberpassport = filter_var(trim($_POST['number passport']),
FILTER_SANITIZE_STRING);
$Birthday = filter_var(trim($_POST['Birthday']),
FILTER_SANITIZE_STRING);
$query="INSERT INTO `gragdanin`(`familia`,`name`,`otchestvo`,`City`,`Street`,`Numder`,`seriespassport`,`numberpassport`,`Birthday`) VALUES ('".$familia."','".$name."','".$otchestvo."','".$City."','".$Street."','".$Numder."','".$seriespassport."','".$numberpassport."','".$Birthday."')";
$res = mysqli_query($db, $query);
if ($res==true) {
echo "<script>alert(\"Вы успешно добавили данные!\");</script>";
echo "<script>document.location.href='1.php';</script>";
}
else {
echo "<script>alert(\"Ошибка!Проверьте данные и отправьте снова!\");</script>";
echo "<script>document.location.href='1.php';</script>";
}
?>
Подключение к бд
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$db = mysqli_connect('kurs', 'root', '', 'zags');
?>