Determining if checkbox is selected in PHP
| From: | Keith Wilkinson | Date: | Tue, 09 Sep 2003 12:09:23 +0000 |
| Subject: | Determining if checkbox is selected in PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-30428@lists.php.net to get a copy of this message | ||
I'm storing the values from a groups of checkboxes
in an array "keyword[]", but $_POST['keyword'] is
undefined if none of the checkboxes is checked.
I tried using "in_array()" with $_POST to determine
if any of the group of 'keyword' checkboxes is checked,
but can't get it to work; does anyone have any
suggestions?