Jump to content

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


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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.