mpsn Posted November 19, 2011 Share Posted November 19, 2011 I want to save files to a directory. I am using a input type="text" to let user paste directory, then they choose the file from an upload form, then press submit. So here is my script: ============== <form method="post" action="" enctype=...> <input type="text" name="textboxDir" /> <input type="file" name="uploadedFile"/> </form> So how do I now save the uploaded file via $_POST['uploadedFile'] to the text box directory: $_POST["textBoxDir"]? Any help much appreciated! Link to comment https://forums.phpfreaks.com/topic/251417-how-to-save-file/ Share on other sites More sharing options...
trq Posted November 19, 2011 Share Posted November 19, 2011 move_uploaded_file. Link to comment https://forums.phpfreaks.com/topic/251417-how-to-save-file/#findComment-1289508 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.