PHP - How to use a textbox and a button to remove a certain file?
Posted on 2011-09-09
Hello everyone! The title may not be that clear what I'm trying to do. First of all, I have created multiple paths like this:
You notice that the only thing that changes in the path is the middle. Now my question. Can I use a textbox to determine the numbers 1, 2, 3 so If I for example type a 2 in the textbox and then click a button, the file
F:\MyFolder\2\testfile.txt will be removed. And if I type a 3 the file F:\MyFolder\3\testfile.txt will be removed.
Basically everything in the path stays the same only the second folder changes.
Thank you for your support,