Hi folks, this is my second post to HOF! I was referred to the site through the Hostmysite developer forum. I have a question with regards to CFFORM. I have two CFM pages structured like this (edited for this post) NewMovieWizard.cfm: <cfform name="form1" format="html" action="#CGI.SCRIPT_NAME#?stepNum=#session.ofgr.stepNum#" method="POST"> <cfswitch expression="#session.ofgr.stepNum#"> <cfcase value="1"> <cfinclude template="step1.cfm"> </cfswitch> </cfform> step1.cfm: <cfinput name="firstName" type="text" value="#session.ofgr.firstName#" size="40" maxlength="50" validateat="onSubmit" required="yes" message="Please enter your first name." />
I have a 5 page application form that I need to split into multiple pages. So instead of listing all the code from all 5 pages, my intention is to just cfinclude them into the main cfm file (NewMovieWizard.cfm). The problem that happens is that when i get to the first cfcase=1, coldfusion gives me an error that the <cfinput> tag must be nested inside a <cfform> tag. As you can see the I have started off with a <cfform> but for some reason it is ignored with the included file. Can anyone offer a reason why this occurs? Is this a bug or am I crazy? Appreciate any help - THANKS!!! I did notice that if I use <input> instead of <cfinput> the error is not recognized for that field. hmm Of course the problem goes away if I just insert the actual code from the step1.cfm page into NewMovieWizard.cfm, but what I wanted is to organize the step pages into files. If it can't be done, oh well... AC ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208788 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

