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! Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/251417-how-to-save-file/#findComment-1289508 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.