> I HATE "Are you sure?" prompts. If I wasn't sure, I wouldn't have
> clicked it in the first place.
>
> If you want to make your users happy, trust them when they say
> "Delete", but make it easy to undo. Instead of deleting the records,
> just set the "Delete" flag and timestamp. Then when th
> "Are you sure?" and then a "yes" and "no" buttons to confirm the deletion or
> to cancel the command.
>
> Any thougts??
While some of the others here have answered your technical question,
I'd like to state my opinion on usability.
I HATE "Are you sure?" prompts. If I wasn't sure, I wouldn't
Here's some javascript I use for such instances:
[CODE]
if (myForm.hidWhich.value == "delete")
{
var verify = prompt("You are about to delete this entry \n" +
" \n \n" +
"To delete this entry you must type this phrase in the prompt
and click
om: Murray @ PlanetThoughtful [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 12:32 PM
To: 'Philippe Reynolds'; php-general@lists.php.net
Subject: RE: [PHP] html forms in php
> Good day all,
>
> I have a problem for you all..
> I have a form that has has the ability to
> Good day all,
>
> I have a problem for you all..
> I have a form that has has the ability to delete a lot of information from
> my MySQL database.
>
> I would like to create a bit of security, in case the user hits the button
> by accident.
> I would like to create an additionnal window that wo
philippe,
you can accomplish this by using a piece of javascript that fires off an
alert, asking the user 'yes/no'. if the user selected yes, the app would do
a submit to the page that would then take care of the mysql/db
interaction...
search on google for 'php onsubmit alert' etc...
-bruce
-
[snip]
"Are you sure?" and then a "yes" and "no" buttons to confirm the deletion or
to cancel the command.
Any thougts??
[/snip]
You can use JavaScript for this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7 matches
Mail list logo