Re: Checkbox Initial Value based on record in db
| From: | Miguel Cruz | Date: | Wed, 01 May 2002 17:19:08 +0000 |
| Subject: | Re: Checkbox Initial Value based on record in db | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95543@lists.php.net to get a copy of this message | ||
On Wed, 1 May 2002, Daniel Negron/KBE wrote:
> Kinda off topic here, just checking to see If I am on the right track with
> this
>
> <input type="checkbox" name="abb" value="<?php echo
> $myrow['abb'] ?>">
>
> the result should be :
>
> IF the record contains the field "abb" and it has a value of 1 then it will
> be checked off for viewing.
http://www.w3.org/TR/REC-html32#fields
<input type="checkbox" name="abb" value="1" checked>
<input type="checkbox" name="abb" value="1">
miguel