I am doing an exercise from the book Build Your Own Database Driven Website Using PHP & MySQL.

In one assignment we are asked to create some kind of confirmation for the deletion of a record. Since the book do not give the solution do anyone have a suggestion?

On the Author page for instance I see:

Daniel Lamarche [ Edit ] [ Delete ]

Clicking the Delete link will confirm the deletion. Is there a way to display a form first asking "Are you sure?" when the user clicks the "Submit" button the deletion would proceed.

I do not wish to have the complete solution. Just an approach, a hint in the right direction. The author suggest using a multipurpose page for the confirmation and the deletion.

Thanks for your help.

D. Lamarche