php3-list | 199807
Date: 07/31/98
- Next message: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Previous message: Cary Collett: "Re: [PHP3] List Split"
- Maybe in reply to: Christopher Curtis: "[PHP3] Array of checkboxes"
- Next in thread: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Reply: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 31 Jul 1998 15:59 -0400 "Christopher Curtis" <ccurtis <email protected>>
wrote:
> Does this code snippet serve any purpose whatsoever?
>
> for( $i = 0; $i < 10; $i++ )
> echo "<input type=checkbox name=checkarray[]>\n";
>
> ?
>
> The only useful thing I can get from this is that 'n' checks are set.
You need to assign a value:
for ( $i=0; $i<10; $i++ ) {
echo "<INPUT TYPE=\"CHECKBOX\" NAME=\"checkarray[]\" VALUE=\"$i\">\n";
}
-- Tommy Williams <mailto:Tommy.Williams <email protected>> <URL:http://www.mc.Vanderbilt.Edu/~tommy/>-- 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: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Previous message: Cary Collett: "Re: [PHP3] List Split"
- Maybe in reply to: Christopher Curtis: "[PHP3] Array of checkboxes"
- Next in thread: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Reply: Christopher Curtis: "Re: [PHP3] Array of checkboxes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

