php3-list | 199807
Date: 07/31/98
- Next message: Darrell Brogdon: "RE: [PHP3] List Split"
- Previous message: Steven Apostolou: "Re: [PHP3] Problem with Netscape."
- In reply to: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 31 Jul 1998, Christopher Curtis wrote:
> On Fri, 31 Jul 1998, Tommy Williams wrote:
>
> > You need to assign a value:
> >
> > for ( $i=0; $i<10; $i++ ) {
> > echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"checkarray[]\" VALUE=\"$i\">\n";
>
> Hrmph.
>
> Made do with "name=check$i" but thanks. Didn't know you could assign a
> value to a checkbox (other than "checked", but that's not a value).
You could also specify your checkbox name as check[$i] . Then you would
still get an array, but it would be filled with 'CHECKED' or null values.
Cees
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Darrell Brogdon: "RE: [PHP3] List Split"
- Previous message: Steven Apostolou: "Re: [PHP3] Problem with Netscape."
- In reply to: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

