That's nothing to do with PHP, that's HTML, php read a file, interprets some instructions and output the most of time HTML. So what you want is client-side not server-side.
Anyway if you use a form, when you press the delete button you should use the javascript "confirm" function.
Hope that work.
Hector.
http://www.oksonora.com