Hi guys I am learning PHP and the code below sends information to my MySQL database but it does not match with the data i just gave him to insert, for example it inserts 1|blank|blank for the code below. I can´t solve it :

**insert.php file:**

```
<?php
$con=mysqli_connect("localhost","root","");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

// escape variables for security

$firstname = mysqli_real_escape_string($con, $_POST['firstname']);
$age = mysqli_real_escape_string($con, $_POST['age']);

$sql="INSERT INTO Person (PID,Name, Age)
VALUES ('1','$firstname', '$age')";

if (!mysqli_query($con,$sql)) {
die('Error: ' . mysqli_error($con));
}
echo "1 record added to database";

mysqli_close($con);
?>

```

It keeps me saying this:

```
Notice: Undefined index: firstname in E:\XAMPP\htdocs\Bioinformatics\insert.php on line 11

Notice: Undefined index: age in E:\XAMPP\htdocs\Bioinformatics\insert.php on line 12

```

**code for html form:**

```
<!DOCTYPE html>
<html>
<body>

<form name="input" action="insert.PHP" method="get">
First name: <input type="text" name="FirstName" value="Ronaldo"><br>
Age: <input type="text" name="Age" value="28"><br>
<input type="submit" value="Submit">
</form> 

</body>
</html>

```

Thanks for any help guys!