GET: we are submitting a form to login.php, when we do submit or similar
action, values are sent through visible query string (notice
./login.php?username=…&password=… as URL when executing the script
login.php) and is retrieved by login.php by $_GET['username'] and
$_GET['password'].
POST: we are submitting a form to login.php, when we do submit or similar action, values are sent through invisible standard input (notice ./login.php) and is retrieved by login.php by $_POST['username'] and $_POST['password'].
POST method data is sent by standard input (nothing shown in URL when posting while in GET method data is sent through query string.
POST: we are submitting a form to login.php, when we do submit or similar action, values are sent through invisible standard input (notice ./login.php) and is retrieved by login.php by $_POST['username'] and $_POST['password'].
POST method data is sent by standard input (nothing shown in URL when posting while in GET method data is sent through query string.