What is the role of register_globals in PHP and how does it impact form handling?
The register_globals setting in PHP allows form data to be automatically registered as global variables, which can pose security risks such as variable injection attacks. To address this issue, it is recommended to disable the register_globals setting in PHP configuration files.
// Disable register_globals in PHP configuration file (php.ini)
register_globals = Off;