Ok, well what I would do is have each of the series of checkboxes be in an array for each user, using variable variables.
There's probably an easier way to do it, but I'm not sure.. so here's basically what I'd do (in pseudocode): for (each user, their id being $userid) { <input type="hidden" name="userids[]" value="$userid"> <input type="checkbox" name="userdata_$userid[0]" value="1"> Update <input type="checkbox" name="userdata_$userid[1]" value="1"> View <input type="checkbox" name="userdata_$userid[2]" value="1"> Priv } then to process after the form is submitted: foreach($userids AS $value) { do stuff for each user, the user ID being $value here you can check the three values as such: $theuserdata = "userdata_$value"; $update = ${$theuserdata}[0]; // null or 1 $view = ${$theuserdata}[1]; // null or 1 $priv = ${$theuserdata}[2]; // null or 1 } That would do what you want to do. Whether there's a simpler way, I dunno. :) -Mike At 02:33 PM 2/18/2002 +0000, Sandeep Murphy wrote: >ok... > >I am creating a tree of checkboxes from the information in the database.. >like for everyname >in the database I create a series of (3)checkboxes (update, view and priv).. > >so when I do a submit i need to send all the values for every checkbox >clicked for any number of users... > >My problem is that I am not sure how I can submit the values of all >checkboxes as they keep varying in number... > > >Hope my problem is more clearer now.. > >gratefull for suggestions... > >sands -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php