Link to home
Start Free TrialLog in
Avatar of soapsiam
soapsiam

asked on

Multipage Form using hidden fields, session variables or custom database storage.

I have designed a multipage form using session, but I concern about its performance as I have nearly 100 fields (6 pages) to remember.

I think it is 3 possible ways to make multiple page form.
1. Hidden fields, all form inputs are generated and send along on each page form but show only those for that page.
2. Session variables, store predefined field in session variables. Again all varibles are sent along with page but less than first case as my multipage form is sequential (user can only back/forward/cancel).
3. Custom database storage. Just store each page variables in database and load them page by page. We need garbage collection here. As I have cancel button this provide me to do garbage collection, and I have also update time to check its heartbeat for particular request. I think this is the BEST SOLUTION.

Please give me any suggestion or comment.

Thanks,
SoapSiam
ASKER CERTIFIED SOLUTION
Avatar of Marcus Bointon
Marcus Bointon
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of soapsiam
soapsiam

ASKER

Squinky

Did you ever try PEAR HTML_QuickForm_Controller? What is it based on?
I've not used QuickForm controller - it's based on QuickForm! Because it's pear, it's all just straight PHP. I do find some of the pear stuff a bit obtuse ;^)