Multipage Form using hidden fields, session variables or custom database storage.
Posted on 2005-02-24
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.