Re: Quickform_Controller - jump from page 1 to page 3
| From: | Alexey Borzov | Date: | Mon, 15 Sep 2003 20:11:43 +0000 |
| Subject: | Re: Quickform_Controller - jump from page 1 to page 3 | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7825@lists.php.net to get a copy of this message | ||
Hi!
LIMBOURG Arnaud wrote:
I don't quite get the way things work in the controller. What i want to do is the following, on a three pages form i sometimes need to go from page 1 to page 3. I suspect the jump action is involved somehow but i'm confused how to use it. To be more precise the redirect occurs on page 2 when certain condition are met (e.g: you choose NO on page 1, that means that page 2 will check and if it finds NO it will redirect to page 3.'jump' action is just a redirect to the given page. You probably need to add a custom handler for the 'Next' button on the first page that will check whether NO was chosen and call 'jump' handler either on page 3 or page 2.