Re: [PHP] html forms in php

2005-09-19 Thread Alain Reguera
> 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

Re: [PHP] html forms in php

2005-09-16 Thread Scott Noyes
> "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

Re: [PHP] html forms in php

2005-09-15 Thread D A GERM
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

RE: [PHP] html forms in php

2005-09-15 Thread Alan Fullmer
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

RE: [PHP] html forms in php

2005-09-15 Thread Murray @ PlanetThoughtful
> 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

RE: [PHP] html forms in php

2005-09-15 Thread bruce
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 -

RE: [PHP] html forms in php

2005-09-15 Thread Jay Blanchard
[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