Back to the 2024 paper

Module III — Basics of Web Programming

20242m

Which variable is used to collect form data sent with both the GET and POST methods in PHP? (i) BOTH(ii)_BOTH (ii) _REQUEST (iii) REQUEST(iv)_REQUEST (iv) _BOTH

Worked SolutionAI Assisted

Answer: (ii) $_REQUEST (options (ii) and (iii) are identical in the paper).

REQUEST‘isaPHPsuperglobalthatcollectsdatafrom‘_REQUEST` is a PHP superglobal that collects data from `_GET, POST‘,and‘_POST`, and `_COOKIE. $_BOTH does not exist in PHP.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.