PHP
PHP
Using, "isset" to check if $_GET, will not work. The function, "isset()", is normally my goto function to check if a variable is empty. In this case, it will not work. We need to use the "empty()", function.
Php code snippet:
<?php
if(empty($_GET) {
echo "no parameters received";
exit; //terminates script early.
}
?>