Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] Array of checkboxes From: Christopher Curtis (ccurtis <email protected>)
Date: 07/31/98

grr ...

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. It
will not tell me that 1, 4, 5, 6 were set. Is there a purpose to this or
is it just a side-effect of form processing (that is, is it even possible
for PHP to tell that these specific instances are checked)?

rgds,

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/

-- 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