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
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
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
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
4 matches
Mail list logo