I have a drop down list populated with the names of various files read from a directory, you can then select a file from the list and press the delete button and this deletes (unlink()'s) the file from that directory.
My problem is that if you then select the drop down list again the file name is still there (although the physical file has been deleted!), and obviously selecting it again and trying to delete it again, brings up errors due to the fact that it no longer exists.
any ideas as to how i can get around this?
thanks in advance,
Paul