Working with Forms in PHP, Part 1
Subject:   better solution to test for form vars
Date:   2003-03-14 02:47:01
From:   mattrohrer
would involve using isset() or empty():

/* 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

1 to 1 of 1
1 to 1 of 1