Hi i wrote a code to upload 4 images. I wrote code and works fine for my need. I wrote some thing like this. file1,file2.... file4 as the names of file fields. and in the process.php page like this
if ($_FILES['file1']['name'] != '') {
//// file upload
}
then file 2
if ($_FILES['file2']['name'] != '') {
//// file upload
}
till file 4
then add data into database;
then
function error
if any error occur while uploading image then that call the function and leads to an error page....
And the problem is if one file got error while uploading then the user need to upload all of 4 photos again !!!!! The old photos will store in server as useless.
Is there is any idea to overcome this.
Please help me