Date: 03/08/07 (PHP Community) Keywords: no keywords i have a form with an array of checkboxes. after a query is submitted, the page refreshes with the form filled in per the users' choices. the array of checkboxes is created with the following relevant snippets:
my problem is that, as long as the $_POST['strap_city'] array exists, "lee county" ends up checked. i'm pretty sure it's because $code for "lee county" is zero. i've tried writing this conditional every way i can think of, but the damned thing keeps ending up selected. any suggestion on how i can get "lee county" checked only when a 0 is actually in the array?
|