What potential issue could arise from using register_globals set to 'on' in PHP?
Using register_globals set to 'on' in PHP can lead to security vulnerabilities such as variable injection attacks and overwrite of global variables. To solve this issue, you should explicitly access variables through the $_GET, $_POST, or $_REQUEST superglobals rather than relying on register_globals.
// Explicitly accessing variables through superglobals to prevent security vulnerabilities
$variable = isset($_GET['variable']) ? $_GET['variable'] : '';