I made sure all the names are the same as in the database but it doesn't add the elements to my database. What might be the problem?
<div class="form_div" required>
<p class="form_label">Not a customer? Signup Here!</p>
<form method="Post" action="Register.php" required>
<p><input type="text" name="name" placeholder="Name and Last Name" required></p>
<p><input type="text" name="Email" placeholder="Email Address" required></p>
<p><input type="text" name="Phone" placeholder="Your Phone Number" required></p>
<p><input type="password" name="password" placeholder="**********" required></p>
<p><input type="submit" name="submit" value="SIGNUP"> </p>
<?php
//Fill out the following fields to be able to register.
if(isset($_POST['submit'])) {
$nameandlast= $_POST['name'];
$Email= $_POST['Email'];
$Phone= $_POST['Phone'];
$password= $_POST['password'];
//Inserts customer details into the customer table in the SQL database so they can schedule appointments and login later. If the registration have been added successfully, display a success message.
$query = "INSERT INTO customers (name, email, phone, pass) VALUES ('{$nameandlast}','{$Email}','{$Phone}','{$password}');";
runQuery($query);
echo "You have been successfully registered";
// If the customer is succesfully registered, redirect him so he can log in.
header('Location: Login.php');
}
?>