Database update with multiple form fields having the same name
So I've made good progress on my CF photo album project, but now I've run into a snag. Once I've uploaded a collection of photos and inserted them into my database, I bring up a page which is basically a table containing the thumbnail of each pic, some info about it, and the description of the pic.
The table is inside of a <form> tag, and the description is a <textarea> tag. I have as many text areas as I have pics, so it can be any number (within reason). I'd like to be able to type a description for each pic into each textarea rather than having to do them one at a time, then click the submit button to update my records.
Each textarea has the same name, so I had the idea to add a hidden form field that held the pic ID, then on the processing page I could maybe have a <cfloop>. My problem is that I can't figure out how to associate each pic ID with the corresponding description, especially considering some of the descriptions might be blank.
Is there a proper way to do this?
