I volunteer for a non-profit student club con campus, and the photo gallery script we use, MiniGal, allows the admin to comments images. However, the gallery script creates a separate ".cmt" file for each commented image containing the plain text of the caption.
What I want to do is echo a directory listing of image files, then have a textbox to the right of each image filename (for each corresponding comment file) to edit the caption text of each image. At the end of the page, there would be a submit button to save all of the files listed at once (or in a batch operation, whatever works, I'm new at this). The page might render something like this:
[FONT=arial]IMG_1003.jpg[/FONT][FONT=courier new] | [Our new dog.__________]
[/FONT][FONT=arial]IMG_1004.jpg[/FONT][FONT=courier new] | [Heel, Rover._______]
[/FONT][FONT=arial]IMG_1008.jpg[/FONT][FONT=courier new] | [No, we don't eat socks.]
[/FONT][FONT=arial]IMG_1009.jpg[/FONT][FONT=courier new] | [Not shoelaces, either.]
[/FONT][FONT=arial]IMG_1015.jpg[/FONT][FONT=courier new] | [Good boy.___________]
[/FONT][FONT=arial]IMG_1008.jpg[/FONT][FONT=courier new] | ["Oh joy, belly rub!"__]
[[/FONT][FONT=arial] Submit [/FONT][FONT=courier new]] [/FONT]
It seems like there 'should' be an easy way to do this akin to a multiple file upload widget, but I haven't found any useful snippets to get me started. Plus, I'm still new at coding for PHP; I can edit scripts really well, but when I start from scratch, it gets so convoluted that I can't debug my own work. Oy.
Is there anyone who can point me in the right direction (or even perhaps send me a complete script to modify to my heart's content?) Thanks in advance!