This should be a elementary question but why is better to use something like this:
$pwd = filter_input(INPUT_POST, \'pwd\');
Instead of jus
It's not. $_GET, $_POST, $_COOKIE and $_REQUEST are filtered with default filter. filter_input(INPUT_POST, 'pwd') without additional parameters also uses the default filter. So there is no difference at all.
$_GET
$_POST
$_COOKIE
$_REQUEST
filter_input(INPUT_POST, 'pwd')