Copy link to clipboard
Copied
I create and upload files to a folder named "files". How would I create a form that let's me input a new folder name, and when I hit a Submit Button, the folder "files" is renamed to the new name I input into form? I am using PHP.
Copy link to clipboard
Copied
You would need to incorporate some of php's file system functions into your script:
http://www.php.net/manual/en/ref.filesystem.php
Copy link to clipboard
Copied
I looked there before I asked the question here.
Copy link to clipboard
Copied
Volsupporter wrote:
I looked there before I asked the question here.
Then what specifically is your question? What do you not understand about the file system functions?
Copy link to clipboard
Copied
I think that the rename php function would do the job. Let's say you have the post of the folder name comes from the form as the value of $_POST['folder'] .
With the mentioned function you can create folder easy
rename ('files',''.$_POST['folder'].'' );
Regards
Zoli
Find more inspiration, events, and resources on the new Adobe Community
Explore Now