Re: array + checkbox
| From: | Colin Viebrock | Date: | Wed, 08 Aug 2001 15:00:03 +0000 |
| Subject: | Re: array + checkbox | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61841@lists.php.net to get a copy of this message | ||
> If( strcmp($voorraad[1],'on') == 0 )
> // it's checked
> else
> // it's not
Alternatively, fix your HTML by using quotes and a value attribute:
<INPUT TYPE="checkbox" name="voorraad" value="something"
checked>
Then:
if ($voorraad=='something') {
// checked
}
- Colin