What is the potential issue with using register_globals in PHP?

The potential issue with using register_globals in PHP is that it can lead to security vulnerabilities such as injection attacks and data manipulation. To solve this issue, it is recommended to disable the register_globals directive in the php.ini configuration file.

// Disable register_globals in php.ini
// Set register_globals to Off
register_globals = Off;