What are the potential pitfalls of using $_REQUEST in PHP scripts?

Using $_REQUEST in PHP scripts can pose security risks as it combines data from $_GET, $_POST, and $_COOKIE. This can make the script vulnerable to injection attacks or unintended data manipulation. To mitigate these risks, it is recommended to use $_GET or $_POST specifically depending on the expected data source.

// Using $_GET or $_POST instead of $_REQUEST
$value = isset($_GET['value']) ? $_GET['value'] : null;