Defined
In PHP, the predefined $_post variables are used to collect values from the form method= "POST".
$_post variable
The predefined $_post variables are used to collect values from the form method= "POST". [1] Information sent from a form with a POST method is not visible to anyone (not displayed in the browser's address bar), and there is no limit on the amount of information sent.Note: However, by default, the maximum number of messages sent by the POST method is 8 MB (this can be changed by setting the post_max_size in the php.ini file).
When to use method= "post"? The information sent from a form with a POST method is not visible to anyone, and there is no limit to the amount of information sent. However, because the variable is not displayed in the URL, the page cannot be bookmarked.
Example
<form action= "welcome.php" method= "POST" > Name: <input type= "text" name= "fname" > <br/> Age: <input type= "text" name= "age" > <br/> <input type= "Submit" > </form> <? PHP $a=$_post[' fname '$b=$_post[' Age 'echo$a ." <br/> "echo$b." <br/> ";? >
$_post in PHP