PHP Validate Multiple Image Uploads & Store images In Variables
<p>There's a form on my website that includes multiple image uploads - each needs to needs to be independent. Upon pressing submit, the images are validated to make sure they're JPG, PNG etc. However, the script redirects to the same page for validation, and if one of the images doesn't fit to validation requirements, all the temporary image selections are lost for the other image file selectors. Is there anyway of storing the image location in the other file uploads in a variable for each and setting that as the default value in the file selectors?</p>
