The $_GET function is used to collect values in a form with method=”get”.
Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser’s address bar) and has limits on the amount of information to send.
This is a script. You don’t need to do a global $_GET; to access it within functions or methods.
Explanation: HTML code.
echo $_GET["fname"]; echo $_GET["age"];
Explanation: PHP code
40 years old.