[eluser]Bramme[/eluser]
Hey everybody
I'm messing around with a little gallery application. Here's how it works (or should work -_-): people first select files from their computer and hit an upload button (using uploadify, for multiple files), when a file finishes uploading, a form is shown below the upload button.
This form contains an input where people can enter a title for the gallery. The other fields in the form are titles and descriptions for the uploaded images that get added with jquery when a file is finished uploading.
The gallery title is required, but image title and description are not. I have set up some basic validation for this title field, but the problem is, when the form is sent but errors on the validation (when the title field is left empty), the image fields are gone.
Is there any way to store the uploaded images (or the entire html) in something session like? This way, I could still show them, instead of forcing people to upload everything again (not really user friendly :p)
I hope I'm making sense!