PHP - Superglobals and Web Context
What is wrong with this code snippet?
if ($_REQUEST['submit']) { echo 'Form submitted'; }if ($_REQUEST['submit']) { echo 'Form submitted'; }$_REQUEST['submit'] without checking if it exists can cause a PHP notice if 'submit' is not set.isset($_REQUEST['submit']) to avoid the notice.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions