I am writing a web site for this purpose, but have no idea how to do this: can someone give me some hints or an example?
Let say, there are 5 classes, and 3 students in each class. All data are saved retrieved from DB. There is a drop down menu for the user to select a class. After the selection, three checkbox with student names of that class would show at the bottom. I was thinking to write this with PHP, but the problem is: after I select the drop down menu, I don't want to reload the php file to redraw the checkbox and the names. Then I was thinking to write with PHP and javascript. But I am new in both. Can someone tell me after I retrieved the data from DB, how can I pass them to javascript and ask javascript to draw the checkbox items?
Also if I need to save which checkbox has been checked in each class before I press the submit button, is it possible to do this?
Thanks for reading this first.