Multipage Forms using QuickForms

From: Date: Mon, 28 Jul 2003 13:48:59 +0000
Subject: Multipage Forms using QuickForms
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6865@lists.php.net to get a copy of this message
Hi, I have a single database transaction that requires the input of many (I mean lots) of individual data elements. It is required that these are spread across two pages, with the majority of the second page potentially frozen, depending on vlaues entered on the firat page. Both pages have a significant number of required fields so I have built a range of rules, etc. I am currently trying to get this to work by using two Smarty based templates that display the relevant data for each page. Using this method I can get the data entry flowing nicely but I find now that on hitting submit on the second page, the fields that had been submitted on from the first page are cleared (I have tried to freeze them, even persistently freeze them) but because they get cleared I get a validation error on the required fields and get taken right back to the start of the data entry process. Is there an easy way of doing multipage forms in Quickform? The main reason for wanting to do it this way is to ensure that the database entry can be done in a single transaction. And the application requires two pages. -- Barry Steele <barry@hpfm.biz> hpfm

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