iantearle Posted September 25, 2006 Share Posted September 25, 2006 I have been trying to work out an argument for ages, but cannot get this to work, I am new to PHP so need anyones help!!!I am sending file and folder names from a form to a script which will delete the matching file or folder the action im using is;<? rmdir($_GET["foldername"]); ?><? unlink($_GET["foldername"]); ?>where foldername is from the form im submitting. i want to be able to submit the name of either file / folder from the same form, and have the PHP delete either without handing out an error message.Please help, i have tried various ways including function rm($fileglob) but to no avail. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.