I'm trying to strategize the next step in my .php file. I show a user a page of 7 photos to which they add a set of 4 scores and comments for each photo, then they can go to the next (or previous) 7 photos. For different users the total number of photos will be different. I thought it might be inconvenient to post the data every time you leave the set of 7. At first I thought I would store the data in hidden fields, but that would seem like a lot of hidden fields (maybe 200x for each score and comment), and PHP would not know the number of the fields to create until the javascript runs and fetches the photos.
What would seem very simple is to create javascript arrays that add "records" as sets of 7 photos are retrieved and users values entered into the form fields. I think I can pass the information back and forth between the javascript arrays (with upwards of 200 records) and the 7 sets of form fields easily.
The issue is going to be posting the data to MySQL. I am thinking I could loop through the javascript array, change a set of hidden fields, and post them record by record. Would that be prohibitively slow if I might have around 100 records (photos). I guess I could have 20 (to pick a number out of a hat) hidden fields and process the records 20 at a time or something if that would speed up the posting.
I am hoping that you folks that have a lot of real-world experience with these sorts of problems might have a good feel for the best way to approach this.