Jump to content

EASY PROBLEM :P i'm just retarded :D PLEASE HELP. REALLY EASY.


JustinMs66@hotmail.com

Recommended Posts

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]<?php
mkdir($_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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.