未定义的索引:第22行的C:\ xampp \ htdocs \ DreamPark egistered.php中的城市

I'm trying to figure out whats wrong with this code, I'm making a simple registration form with php.

These are the errors i'm getting

Notice: Undefined index: City in C:\xampp\htdocs\DreamParkegistered.php on line 22

Notice: Undefined index: Age in C:\xampp\htdocs\DreamParkegistered.php on line 23

Notice: Undefined index: Gender in C:\xampp\htdocs\DreamParkegistered.php on line 24

inserted

And this is my php code.

<?php 


$con = mysqli_connect("127.0.0.1","root","");

    if(!$con)
    {   
        echo "Not Connected" ;  
    }

if(!mysqli_select_db($con,'dreampark'))
    {
        echo "Datebase not selected";
    }


$Name = $_POST['Name'];
$Email = $_POST['Email'];
$Password = $_POST['Password'];
$Mobile = $_POST['Mobile'];
$City = $_POST['City'];
$Age = $_POST['Age'];
$Gender = $_POST['Gender'];

$sql= "Insert into customers (Name,Email,Password,Mobile,City,Age,Gender) Values ('$Name', '$Email','$Password','$Mobile','$City','$Age','$Gender')";



if(!mysqli_query($con,$sql))
    {
    echo " Not Inserted";
    }
else
    {
    echo "inserted";
    }


//header("refresh:2; url=SystemHome.html");

?>