I am getting following errors on my Webpage

Notice: Undefined index: name in C:\xampp\htdocs\CWH\index.php on line 14

Notice: Undefined index: gender in C:\xampp\htdocs\CWH\index.php on line 15

Notice: Undefined index: age in C:\xampp\htdocs\CWH\index.php on line 16

Notice: Undefined index: email in C:\xampp\htdocs\CWH\index.php on line 17

Notice: Undefined index: phone in C:\xampp\htdocs\CWH\index.php on line 18

Notice: Undefined index: other in C:\xampp\htdocs\CWH\index.php on line 19

Below is the corrosponding PHP code

```
$name = $_POST['name'];
$gender = $_POST['gender'];
$age = $_POST['age'];
$email = $_POST['email'];
$phone= $_POST['phone'];
$other = $_POST['other'];

$sql = "INSERT INTO `trip` (`name`, `age`, `gender`, `email`, `phone`, `other`, `dt`) 
VALUES ('$name', '$age', '$gender', '$email', '$phone', '$other', current_timestamp());";

```

Below is the html code

```
<form action="index.php" method="post">
        <input type="text" name="name" id="name" placeholder="Enter your name">
        <input type="text" name="age" id="age" placeholder="Enter your Age">
        <input type="text" name="gender" id="gender" placeholder="Enter your gender">
        <input type="email" name="email" id="email" placeholder="Enter your email">
        <input type="phone" name="phone" id="phone" placeholder="Enter your phone no.">
        <textarea name="other" id="other" cols="30" rows="10" placeholder="Enter any other 
        information here"> </textarea>

```

Can anyone please tell me why I am getting this error.