RE: [PEAR] Quickform

From: Date: Wed, 04 Feb 2004 08:42:25 +0000
Subject: RE: [PEAR] Quickform
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10505@lists.php.net to get a copy of this message
> -----Original Message----- > From: adsl290253@tiscali.nl [mailto:adsl290253@tiscali.nl] > Sent: 03 February 2004 22:40 > [snip!] > Now the function processData() instantiates a new class and > set some members. > Okay all good. Now I want to take the user to a confirmation > and if they > are okay with, some action will be taken. But how do I do > that? How can I > build either a new form on the same page, or take them to > another form? The easiest answer to that is to use the Quickform controller to control the form between two forms. The second form holding a simple yes/no button. Make the no button re-direct to another page (using javascript if you want) and the yes button would trigger a process. Remove the process from your first form - and just do it after the person has said yes on the 2nd page/form. - Mike C __________________________________________________________________________________________ This message is confidential. Unless you are the named addressee or their delegated representative you may not use, disclose, or copy the contents of the e-mail. If you are not the named addressee please notify the sender immediately and delete the material from your computer. Any views or opinions contained in this e-mail are solely those of the author unless expressly stated otherwise. This email has been scanned for all viruses by the MessageLabs Email Security System __________________________________________________________________________________________

« previous php.pear.general (#10505) next »