In PHP, you can upload a file using an HTML form and the POST method, and you can access the uploaded file information using the $_FILES ______ array.
- $_FILES
- $_POST
- $_GET
- $_REQUEST
In PHP, the uploaded file information is available in the $_FILES superglobal array. This array holds the details of the uploaded file, such as the file name, file type, file size, temporary file path, and error status. It provides a convenient way to access and handle uploaded files during file upload processes in PHP.
Loading...
Related Quiz
- How can you pass a variable by reference?
- How can you display an error message if a required field is left empty in a PHP form?
- PHP is primarily used for which type of development?
- You are writing a PHP script and you need to sanitize user input. How would you do this?
- You have a PHP script and you need to access data sent via the POST method from a form. How would you do this using the $_POST superglobal?