How to get the value of an input tag in PHP?

Use PHP’s $_POST or $_GET superglobals to retrieve the value of the input tag via the name of the HTML tag. For Example, change the method in your form and then echo out the value by the name of the input: Example of using PHP to get a value from a form: "foobar.php is an HTML document containing an HTML form.
For More Information Please Refer:

You May Also Like to Read: