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 record?')"> Rick "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 > To: <[EMAIL PROTECTED]> > 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 (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php