Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Jeff Lewis
Shane, I use a javascript prompt. When you click OK, it passes the information on to the PHP script to do the work :) Jeff - Original Message - From: Shane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 27, 2002 12:48 PM Subject: [PHP] Best Delete Confirmation Script

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Dennis Moore
It really depends on how complex your site/application is... I really like using a popup window with some Javascript that refreshes the parent/opener page upon updating or executing the PHP. It then closes the popup window. If the user says no, it just closes the window. This gives the use a

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Richard Baskett
This is the one that I use: script language=JavaScript !-- function confirmSubmit(text) { var yes = confirm(text); if (yes) return true; else return false; } // -- /script input type=submit name=Delete value=Delete onclick=return confirmSubmit('Are you sure you want to DELETE this

Re: [PHP] Best Delete Confirmation Script

2002-06-27 Thread Erik Price
On Thursday, June 27, 2002, at 12:48 PM, Shane wrote: I would like your opinions on the best way to implement an Are You Sure You Want To Do This? dialog for an Admin user when they go to delete a record in a DB. Do you find that a whole page is usually required for this, or does