Jump to content


file and folder delete from form

  • Please log in to reply
No replies to this topic

#1 iantearle

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 25 September 2006 - 09:58 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users