What is $_POST in PHP
$_POST is used to pass variables like $_REQUEST . If we submitting an HTML form with method=”post”.$_POST is used to collect form data.
When a user submits the data by clicking on “Submit”, the form data is sent to the file specified in the action attribute of the <form> tag. Then, we can use the super global variable $_POST to collect the value of the input field.$_POST is very useful variable because it retrieves the value from HTML form only when HTML Form method is post .
Syntax : $variable = $_POST[‘html input name’];