[PHP] Re: How do I use a confirm box to confirm before deletion from a database

2002-01-29 Thread Mike Frazer
Use Javascript on the links. I've done this for all delete links I've done with database-driven sites. Place the following code in the head section of the pages: script language=Javascript var goTo; function verifyClick(goTo) { var choice; choice = confirm(Are you sure you want to

[PHP] Re: How do I use a confirm box to confirm before deletion from a database

2002-01-28 Thread Lerp
Hi Ivan, I've this a number of times. What I suggest is that you have two forms, each with a button on the page that receives the delete request. Both forms post to the processing page. The first button passes a value called dodelete and the second one passes another value say, dontdelete. On the