Dynamically created checkboxes
Posted on 2003-11-06
I'm creating a web-based program that manages the library (books and videos) for the office I work in and have run into a small problem.
On the checkin page, I have a cfselect box that lists all the students that currently have materials checked out. When a student's name is selected, the page automatically reloads and shows, in addition to the cfselect box with the student's name, a list of materials that they currently have checked out. Each item in the list has a checkbox next to it.
I'd like to be able to check the boxes next to each item that the student is returning, so that they can all be checked in in one pass. The problem I'm having, though, is that I can't figure out how to dynamically assign "values" to the checkboxes so that they can be processed by the scripting on the action page. Any ideas?
BTW, for the time being, I've implemented a page that allows me to check in materials one item at a time, so it's not like the entire project is going to bomb if I can't get this one feature working...but it would be a much appreciated feature by the members of our office staff. So any help recieved would be equally appreciated.
Dave "LoneWolf" Savitsky