I know that instead of
$_POST['var_name']
I need to use
filter_input(INPUT_POST, 'var_name')
but what about the first check, if the server has a POST request:
if($_SERVER['REQUEST_METHOD'] == 'POST')
does it have an equivalent? because Netbeans gives the warning
Do not Access Superglobal $_SERVER Array Directly