try something like this
survey section1
<form name="survey1" action="survey2.cfm" method="post">
and in survey2.cfm
<cfquery name="" datasource=""
insert into tblsurvey q1,q2,q3,q4,q5 values(<cfqueryparam value="form.q1">,...)
</cfquery>
and then in the same page
<form name="survey2 action="survey3.cfm">
etc
Main Topics
Browse All Topics





by: kjuliffPosted on 2003-11-10 at 08:12:58ID: 9715851
You can't have the action the same for the four pages. I'd only code the form proper on the final page. I would have 3 temporary forms for the other pages each going to the next temp form page.
eg
page 1 form1 action = form2 submit name = "next" pass input filds to form2
page 2 form2 action = form3 submit name = "next" value of form1 fields passed to next page as hidden
page 3 form3 action = final form submit name = "next" value of form1 and form2 fields passed to next page as hidden
page 4 final form - actually does the work as has its own input fields and the passed hidden ones from the previous forms