One of my FUSEACTIONs calls a registration page. The process is such that the
user is given one set of questions in one page, another set in a second, the
final set in a third.
This "action" page uses structNew() to create and initialize session variables
<CFIF NOT IsDefined("SESSION.joinff")>
<!---if the structure is undefined, create/initialize it --->
<CFSET SESSION.joinff = StructNew()>
....and calls itself:
<CFFORM ACTION="JOIN.cfm?StepNum=#SESSION.joinff.StepNum#" NAME="Reg"
METHOD="POST">
I'm having a problem with the logic for the NEXT and BACK buttons:
<!--- if the user clicked the Back button, go back a step --->
<CFIF IsDefined("FORM.GoBack")>
<CFSET SESSION.joinff.StepNum = URL.StepNum - 1>
<!--- if user clicked Next button, go forward one --->
<CFELSEIF IsDefined("FORM.GoNext")>
<CFSET SESSION.joinff.StepNum = URL.StepNum + 1>
Clicking NEXT calls index.cfm (just what FB is meant to do) so the URL specs
are gone.
So, what would correct this problem and what would be the most efficient way of
doing so ?
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive: http://www.houseoffusion.com/groups/Fusebox/message.cfm/messageid:6925
Subscription: http://www.houseoffusion.com/groups/Fusebox/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12