0

When Collecting form data , can the php superglobals $_POST and $_REQUEST be used for this purpose?

We know superglobals can be accessed anywhere regardless of scope, my question is specific to the form input fields, the information, the user inputs there.

3rd Dec 2020, 5:19 AM
EMMANUEL NUOTAH TUONUO DERY
EMMANUEL NUOTAH TUONUO DERY - avatar
3 Answers
+ 10
Hii EMMANUEL NUOTAH TUONUO DERY Can you elaborate the question a bit where we can locate what you are exactly asking for.. Though am giving a resource which might help you to know.. https://www.geeksforgeeks.org/php-superglobals/ Might this will clear your unclear query.. Hope you understand 👍
3rd Dec 2020, 6:12 AM
Piyush
Piyush - avatar
3rd Dec 2020, 5:24 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Yes. $_POST contains the body of a HTTP POST request. $_REQUEST contains every data sent regardless of the method (verb).
3rd Dec 2020, 7:37 AM
Ore
Ore - avatar