Re: Best Delete Confirmation Script

From: Date: Thu, 27 Jun 2002 16:57:30 +0000
Subject: Re: Best Delete Confirmation Script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104188@lists.php.net to get a copy of this message
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" <shane@delaplaine.com> > Date: Thu, 27 Jun 2002 09:48:37 -0700 > To: <php-general@lists.php.net> > 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 >

« previous php.general (#104188) next »