soltek Posted October 19, 2011 Share Posted October 19, 2011 Hey there, this has both HTML and PHP, but I chose this section. I hope it's okay. So here's the thing. I know how to use forms to upload pictures into a server folder using php and html, but the issue is now I need to submit: » Text details such as Product Name and Price; » One image to folder ABC; » 3 images to folder XYZ; Do you know if this can be done? If it's possible, could you enlighten me? Thanks! Link to comment https://forums.phpfreaks.com/topic/249373-submit-images-to-diferent-folder-in-one-form/ Share on other sites More sharing options...
voip03 Posted October 19, 2011 Share Posted October 19, 2011 1. Create DB and store the Data 2. Image one $add =’ABC’ // Foldername move_uploaded_file ($_FILES['userfile']['tmp_name'][0],'$add); 3. $add =’XYZ’ move_uploaded_file ($_FILES['userfile']['tmp_name'][1],'$add); // array 1-3 Link to comment https://forums.phpfreaks.com/topic/249373-submit-images-to-diferent-folder-in-one-form/#findComment-1280451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.