Topic: Multiple forms on one page
I'm writing a photo management thing that will allow my family and I to edit descriptions, dates, etc. about our family photos that I've been scanning.
The layout of the page is a preview of the picture on the left side of the page, and a data-entry form to the right of it. The page contains one roll of pictures. So I can have anywhere from 1 to 36 (I haven't hit any rolls with more than that...yet) separate forms on the page.
I have it working for the first picture - that is, I can update the data and have it save to the database successfully, and I can hit buttons that rotate the picture (which is really just another database update).
My problem is extending that to the second picture...and the third... and so on.
Currently I have this:
$reqSave =& $xajax->RegisterFunction('save_data'); $reqSave->setParameter(0, XAJAX_FORM_VALUES, "Film_1");
Where Film_1 is the form for the first picture.
In theory I could register a bunch of functions ($reqSave1...$reqSave2....etc.), but that sounds unnecessarily complicated. Is there some way to do this that I've missed?