You can use the $_GET superglobal in PHP to get data sent via the POST method from a form.
- TRUE
- FALSE
The statement is false. The $_GET superglobal is specifically used to retrieve data sent via the GET method, not the POST method. To access data sent via the POST method from a form, you would use the $_POST superglobal. The $_GET superglobal retrieves data from the URL's query string, whereas the $_POST superglobal retrieves data sent through an HTML form using the POST method. Learn more: https://www.php.net/manual/en/reserved.variables.get.php, https://www.php.net/manual/en/reserved.variables.post.php
Loading...
Related Quiz
- What are some commonly used network functions in PHP?
- In PHP, a multidimensional array can only contain indexed arrays.
- The main purpose of a constructor in a PHP class is to initialize the object's properties when an object of the class is created.
- Which of the following are valid ways to define a string in PHP?
- You need to close a connection to a MySQL database in your PHP script. How would you do this?