Warning: Undefined array key error in PHP

one text

Solution:

You should check first if the array key-value exists before you echo, like this:

<?php
if (isset($_GET["username"], $_GET["age"])) {
    echo $_GET["username"];
    echo "</br>";
    echo $_GET['age'];
}

Source