Q. How do you retrieve the value of a POST variable named 'username'?

  • (A) $_GET['username']
  • (B) $_POST['username']
  • (C) get('username')
  • (D) post('username')
πŸ’¬ Discuss
βœ… Correct Answer: (B) $_POST['username']
Explanation: $_POST superglobal holds data sent via HTTP POST method.
Explanation by: Rati Dubey
$_POST superglobal holds data sent via HTTP POST method.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
74
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
91%
Success Rate