Complete the code to access the value of a GET parameter named 'user'.
$username = $_[1]['user'];
$_GET is a superglobal array in PHP that holds data sent via URL parameters.
Complete the code to set a session variable named 'loggedIn' to true.
session_start(); $_[1]['loggedIn'] = true;
$_SESSION is a superglobal used to store session data across pages.
Fix the error in the code to correctly retrieve a cookie named 'theme'.
$theme = $_[1]['theme'];
$_COOKIE is the superglobal array that holds cookie data sent by the browser.
Fill both blanks to create an array that holds input data from POST and COOKIE.
$allData = array_merge($_[1], $_[2]);
$_POST and $_COOKIE are superglobals that hold form data and cookie data respectively. Merging them combines input sources.
Fill all three blanks to check if a POST parameter 'email' exists and is not empty.
if (isset($_[1]['email']) && $_[2]['email'] [3] '') { echo 'Email received'; }
Use $_POST to check the 'email' parameter. The operator '!=' checks that the value is not empty.