Hi, I have loaded the whole file directory of a folder. and show the file name as a link. I would like do a delete function. When the user click the file name, it will trigger a php function to do the file delete.

However, I dont know how to get the file name that the user have clicked. Could you give me some advices on this?

Thank you.