Files
developer-roadmap/roadmaps/php/content/_request@A6rfW4uJhyfAX2b18_EEC.md
T
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

12 lines
729 B
Markdown

# $_REQUEST
$\_REQUEST is a PHP superglobal variable that contains the contents of both $\_GET, $\_POST, and $\_COOKIE. It is used to collect data sent via both the GET and POST methods, as well as cookies. $\_REQUEST is useful if you do not care about the method used to send data, but its usage is generally discouraged as it could lead to security vulnerabilities. Here's a simple example:
$name = $_REQUEST['name'];
This statement will store the value of the 'name' field sent through either a GET or POST method. Always remember to sanitize user input to avoid security problems.
Visit the following resources to learn more:
- [@official@$_REQUEST](https://www.php.net/manual/en/reserved.variables.request.php)