RE: [PHP-WIN] dynamic checkboxes submit..help!

From: Date: Mon, 18 Feb 2002 15:08:29 +0000
Subject: RE: [PHP-WIN] dynamic checkboxes submit..help!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12127@lists.php.net to get a copy of this message
I should have been more specific in some of my pseudocode: <?php for (each user, their id being $userid) { ?> <input type="hidden" name="userids[]" value="<?php echo $userid; ?>"> <input type="checkbox" name="userdata_<?php echo $userid; ?>[0]" value="1"> Update <input type="checkbox" name="userdata_<?php echo $userid; ?>[1]" value="1"> View <input type="checkbox" name="userdata_<?php echo $userid; ?>[2]" value="1"> Priv <?php } ?> That is, the '$userid's and the array indexes '[x]' they are followed by are separate in the code. -Mike

« previous php.windows (#12127) next »