I did a search about this but haven't found what I'm looking for--maybe the way that PHP's upload file functions work, it can't do what I am trying to do.
Ok, so, I have a form. I have various input fields and have two submit options at the end of the form: preview and submit. I save all the temporary input values in my form when a user clicks on the preview button. I have an upload file (used for images) field now. When a user chooses an image to upload, and then clicks "preview", I want the upload file field to keep the same value, and then if the user submits the file then it will upload the file they selected.
But now that I think about it, it might just be just better to have the user select the right file again if they are previewing.
any thoughts?