What potential security risks are associated with using $_REQUEST in PHP?

Using $_REQUEST in PHP can pose security risks because it combines data from various sources (GET, POST, and COOKIE), making it vulnerable to injection attacks. To mitigate this risk, it is recommended to use $_GET or $_POST specifically, depending on the type of data being accessed.

// Use $_GET or $_POST instead of $_REQUEST to access specific data
$var = $_GET['variable_name'];