cfquery and cfloop collection session structure to pre-fill a multi step form

Discussion in 'Programming' started by kate10123, Jul 2, 2010.

  1. #1
    Hi All,

    I am working on a system that requires a multi-step form. I have several cfm pages and an application.cfc which sets up the structure for the session. After each screen is submitted, the form fields for that screen are stored in the session data. This is called request.formdata and my session variable is called session.data.

    What I am struggling with, is how to pre-populate all the form fields with the session data if for example I have a query with the data for each form name, how I can loop around the cfquery and set the session data to the query data.

    I would appreciate any explanation as to how I would go about this,

    Thanks

    Kate
     
    kate10123, Jul 2, 2010 IP