JustinMs66@hotmail.com Posted September 9, 2006 Share Posted September 9, 2006 ok so (lol) this is SOOO easy, i can't belive i'm this retarded. i wana have it so when you press the "submit" button, it creates a directory, and the directory name is the name that is in the textbox.so like in the index.html file i have this:[code]<form method='post' action='foldercreate1.php' enctype='multipart/form-data'> <!-- the textbox. this is what should be the folder Name: --> <input name="foldername1" type="text" value="" maxlength="18"> <br> <!-- the submit button: --> <input type="submit" value="Create Folder"> </form>[/code]and so the variable of the text in the textbox is "foldername1". correct?and in the foldercreate1.php i have this:[code]<?phpmkdir($_FILES['foldername1']);?>[/code]and an error comes up saying:Warning: mkdir() [function.mkdir]: No such file or directory.so like yea, what do i do? Quote Link to comment Share on other sites More sharing options...
JayBachatero Posted September 9, 2006 Share Posted September 9, 2006 You need to provide a full path of where you want the dir to me created. Also you need to use $_POST and not $_FILES. Quote Link to comment Share on other sites More sharing options...
JustinMs66@hotmail.com Posted September 9, 2006 Author Share Posted September 9, 2006 o ok i just replaced FILES with POST and that worked :) thnx man. Quote Link to comment 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.