How to filter superglobal variable $_POST['abc'] to reduce security issues in PHP

1 Answer

0 votes
$user_name = filter_input(INPUT_POST, 'user', FILTER_SANITIZE_STRING);

// instead of $_POST['user']

/*
run:

*/

 



answered Dec 25, 2018 by avibootz
...