The function is used to collect values from a form sent with method=”post”.
Information sent from a form with the POST method is invisible to others and has no limits on the amount of information to send.
This is a ‘super global’, or automatic global, variable.It means that it is available in all scopes throughout a script. You don’t need to do a global $_POST; to access it within functions or methods.
Explanation: HTML code.
echo $_POST["fname"]; echo $_POST["age"];
Explanation: PHP code.