Multiple page submission form
Posted: Fri Jul 06, 2007 5:00 am
Hiya,
Okey - im currently in the process of developing an insurance quotation system, I have a form which needs to be completed which is 40/50 questions long. I want to break this down into pages.
Ive create each section of the form as an include file
inc_page1
inc_page2
inc_page3 etc
I have then create an index page which includes them based on id number from URL (index.php?id=1) This will lead to a final page id=6 which will perform the calculation, initiate an email and insert data into the backend SQL database.
I have everything else working - but im struggling with a tidy solution to moving the form submission data from one form to the next?
page 1 -> page 2 -> page 3 -> page 4 -> page 5 -> finally page 6
Im currently posting form fields from one to the next, and hidding these fields on the next page.
Could anyone suggest a cleaner solution?
Thanks
Rob.
Okey - im currently in the process of developing an insurance quotation system, I have a form which needs to be completed which is 40/50 questions long. I want to break this down into pages.
Ive create each section of the form as an include file
inc_page1
inc_page2
inc_page3 etc
I have then create an index page which includes them based on id number from URL (index.php?id=1) This will lead to a final page id=6 which will perform the calculation, initiate an email and insert data into the backend SQL database.
I have everything else working - but im struggling with a tidy solution to moving the form submission data from one form to the next?
page 1 -> page 2 -> page 3 -> page 4 -> page 5 -> finally page 6
Im currently posting form fields from one to the next, and hidding these fields on the next page.
Could anyone suggest a cleaner solution?
Thanks
Rob.