Hi folks, this is my first 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 action="NewMovieWizard.cfm?StepNum=#session.movWiz.stepNum#" method="POST"> <cfswitch expression="#session.movWiz.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." />
This is actually taken from the CFWACK book by Ben Forta. 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:15:1086 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
