phpnetbeans-8

Warning: filter_input(): INPUT_REQUEST is not yet implemented


I am trying to modify this line.

Originally, it was

$cmd = $_REQUEST["cmd"];

Then, I changed to this by reading this post a link at Stackoverflow.

$cmd = filter_input(INPUT_REQUEST, "cmd");

But, I am still getting bottom error:

Warning: filter_input(): INPUT_REQUEST is not yet implemented

When I read other article a link, it says "INPUT_REQUEST is not a valid type."

What is solution here?


Solution

  • Per the documentation (and your error message, and the answer to the SitePoint Q&A you reference), it's not a valid parameter. The documentation says:

    One of INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER, or INPUT_ENV.

    There is no such thing as INPUT_REQUEST for this function.

    What is solution here?

    Use one of the parameters that actually exists.