Warning "Do not Access Superglobal $_POST Array Directly" on Netbeans 7.4 for PHP

Kannika picture Kannika · Nov 4, 2013 · Viewed 105.3k times · Source

I've got this message warning on Netbeans 7.4 for PHP while I'm using $_POST, $_GET, $_SERVER, ....

Do not Access Superglobal $_POST Array Directly

What does it mean? What can I do to correct this warning?

Edit: The Event sample code still shows this warning.

Answer

Homerocker picture Homerocker · Nov 9, 2013

filter_input(INPUT_POST, 'var_name') instead of $_POST['var_name']
filter_input_array(INPUT_POST) instead of $_POST