This is the one that I use:

<script language="JavaScript">
function confirmSubmit(text) {
  var yes = confirm(text);
  if (yes) return true;
  else return false;
// -->

<input type="submit" name="Delete" value="Delete" onclick="return
confirmSubmit('Are you sure you want to DELETE this record?')">


"Dost thou love life? Then do not squander time; for that's the stuff life
is made of." - Ben Franklin

> From: "Shane" <[EMAIL PROTECTED]>
> Date: Thu, 27 Jun 2002 09:48:37 -0700
> Subject: [PHP] Best Delete Confirmation Script
> Greetings.
> 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 anyone
> have any nice pop up solutions for such a query.
> Sure... I hate doing these things too, but when Joe Big Boss gets a bit
> trigger happy and kills some data he mistakenly thought was a different
> record. You KNOW who is going to hear about it from on high.  :^)
> Thanks gang!
> - NorthBayShane
> -- 
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to