这是我的代码:
<?php
include("conf.php");
if(isset($_POST['firstName']) && !empty($_POST['firstName'])) {
$addQuery = "INSERT INTO members VALUES ('','".$_POST['firstName']."','".$_POST['lastName']."','".$_POST['loyalty']."','".$_POST['citizenType']."','".$_POST['grade']."','".$_POST['status']."')";
mysqli_query($conn,$addQuery);
header("Location: index.php");
exit();
} else {
?>
<div class="container">
.
.
.
<?php } ?>
我无法弄清楚为什么它没有重定向...