How can you test if a checkbox is set?
Use $_GET['test'] == ''
$_GET['test'] == ''
all other answers Actually both are correct, option 3 is actually testing if a checkbox is not set
Actually both are correct, option 3 is actually testing if a checkbox is not set
Use !empty($_GET['test'])
!empty($_GET['test'])
Use isset($_GET['test'])
isset($_GET['test'])