I have done this using SESSION variables to store data from a 5 part/page
form, carrying the variables from page to page. This way, the user has the
option of going back in the process to change their answers. (By selecting
previous steps in the "Progress Bar" on top of the form.)
Only at the end of the form do I store the data into the database (And then
clear out the Session variables should they want to start over...)
So basically:
<cfif IsDefined("Form.Submit")>
<cfset Session.YourData = "FORM.YourData">
<!--- Do Error Checking of some sort --->
<cfif NoErrors EQ TRUE>
<cflocation url="Step_2.cfm">
</cfif>
</cfif>
<cfparam name="SESSION.YourData" default="">
<cfparam name="FORM.YourData" default="">
<cfoutput>
<form method="post" action="#CurrentPage#">
<input name="#FORM.YourData#" value="#SESSION.YourData#">
<input name="submit" type="submit value="Submit">
</form>
</cfoutput>
I hope that helps...
- Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3610
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15