Both $ _POST and $ _FILES are so called in php "superglobals". These are predefined variables (arrays), which means that they are available in all areas in the script. There is no need to declare their access to them within functions or methods.
$ _ POST contains all form data (except files)
$ _ FILES contains all files sent to the server through forms (only from)
source share