phpnetbeanssuperglobalsnetbeans-7.4

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


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.


Solution

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