In PHP webapplication development to collect form data to another page we will use
the following methods
$_GET– this is used in the case when the form action is GET
$_POST– this is used in the case when the form action is POST
Sample form as below
index.php
———
innerpage.php
————-
echo $_POST["name"]; echo $_POST["age"]; ?>
if we change the method as GET in index.php like below