[email protected] 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? Link to comment https://forums.phpfreaks.com/topic/20202-easy-problem-p-im-just-retarded-d-please-help-really-easy/ 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. Link to comment https://forums.phpfreaks.com/topic/20202-easy-problem-p-im-just-retarded-d-please-help-really-easy/#findComment-88851 Share on other sites More sharing options...
[email protected] Posted September 9, 2006 Author Share Posted September 9, 2006 o ok i just replaced FILES with POST and that worked :) thnx man. Link to comment https://forums.phpfreaks.com/topic/20202-easy-problem-p-im-just-retarded-d-please-help-really-easy/#findComment-88852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.