File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,6 +343,13 @@ For example, data returned by multi select dropdown:
343343withRequest()
344344=============
345345
346+ .. warning :: If you want to validate POST data only, don't use ``withRequest()``.
347+ This method uses :ref: `$request->getVar() <incomingrequest-getting-data >`
348+ which returns ``$_GET ``, ``$_POST `` or ``$_COOKIE `` data in that order
349+ (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order >`_).
350+ Newer values override older values. POST values may be overridden by the
351+ cookies if they have the same name.
352+
346353One of the most common times you will use the validation library is when validating
347354data that was input from an HTTP Request. If desired, you can pass an instance of the
348355current Request object and it will take all of the input data and set it as the
You can’t perform that action at this time.
0 commit comments