check all checkboxes
Posted: Tue Feb 09, 2010 6:08 am
hi,there's a problem with my php code and i cant seem to get it right.
the problem is in a form with checkboxes which are in a hierarchy ie there's an "All" checkbox which is self explanatory
and inside there are subgroups like IIA,IIIA etc which again has names of persons which are all retrieved from the database
inside a while loop.
Now on clicking the subgroups for ex. IIA all the names inside of the subgroup are selected and are displayed on a textarea on
the same page........and on click of submit these selected names should be passed to the next page to insert the names in the
database.Ive been trying to do this for sometime now and ive already wasted a lot of time on it and im not able to figure it out
since i'm a beginner and its very urgent that i solve this problem.
plz help.
the problem is in a form with checkboxes which are in a hierarchy ie there's an "All" checkbox which is self explanatory
and inside there are subgroups like IIA,IIIA etc which again has names of persons which are all retrieved from the database
inside a while loop.
Now on clicking the subgroups for ex. IIA all the names inside of the subgroup are selected and are displayed on a textarea on
the same page........and on click of submit these selected names should be passed to the next page to insert the names in the
database.Ive been trying to do this for sometime now and ive already wasted a lot of time on it and im not able to figure it out
since i'm a beginner and its very urgent that i solve this problem.
plz help.