1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which superglobal contains form data submitted with…

Added 2 Nov 2026

Which superglobal contains form data submitted with method="post"?

  1. $_SERVER
  2. $_FILES
  3. $_POST Correct answer
  4. $_GET

Correct answer

C. $_POST

14 views

MCQSEXAM

Explanation

$_POST holds body parameters from POST requests. $_GET holds URL query parameters, and $_FILES holds uploaded files. Always validate and sanitise these inputs.

Reference

Asked in: NTS, PPSC, PHP Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs