Re: User confirmation questions?
| From: | Rabin Vincent | Date: | Fri, 05 May 2006 17:30:31 +0000 |
| Subject: | Re: User confirmation questions? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235659@lists.php.net to get a copy of this message | ||
On 5/5/06, tedd <tedd@sperling.com> wrote:
At 9:38 PM +0530 5/5/06, Rabin Vincent wrote: On 5/5/06, tedd <tedd@sperling.com> wrote:OK, no dialog box, but how could we get a confirmation from the user for something by switching stylesheets? Do you mean something like showing a hidden div with the "are you sure" text? RabinCould you elaborate as to how switching stylesheets can provide a confirmation dialog box? Rabin Perhaps I didn't fully understand the question. A confirmation dialog box, no -- but, a confirmation, yes. If he wants a dialog box, then a simple js alert will do.At 8:58 AM +0300 5/5/06, William Stokes wrote:Hello, In PHP is it possible to generate "windows style" question boxes and get the users choice back? Or do I need javascript or something else for that? For example if a user hits a button in form I could ask for his confirmation for the action. Like "Do you Really wan't to drop the whole database?" Yes or No. And perform or cancel the action by user's decision. -Will-Will: It depends. Typically no, but what you want can be done via a single click by switching style sheets through php (it need cookies though). See -- http://www.sperling.com/examples/styleswitch/ -- for an example and explanation.