What potential issues could arise from using $_REQUEST in PHP code?

Using $_REQUEST in PHP code can lead to security vulnerabilities such as injection attacks and data tampering. It is recommended to use $_GET, $_POST, or $_COOKIE specifically depending on the type of data being accessed. This helps to ensure that only the intended data is being retrieved and processed, reducing the risk of malicious input.

// Example of accessing data from $_POST instead of $_REQUEST
if(isset($_POST['username'])){
    $username = $_POST['username'];
    // Process the username securely
}