/* Assume a checkbox by the name 'mycheckbox' exists */
$checkbox = !empty($_GET['mycheckbox']);
as the method shown in the article could trigger an E_NOTICE error
© 2016, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.