|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
checking for best approach
Hi therePete 03/02/07 01:35 A > Alternatively I could save the form data on the confirmation page toEverett, Al \(NIH/NIGMS\) [C] 03/02/07 09:41 A On Friday 02 Mar 2007, Everett, Al (NIH/NIGMS) [C] wrote:Tom Chiverton 03/02/07 10:00 A > And of course, I don't need to warn you about just blindly taking theEverett, Al \(NIH/NIGMS\) [C] 03/02/07 10:04 A On Friday 02 Mar 2007, Everett, Al (NIH/NIGMS) [C] wrote:Tom Chiverton 03/02/07 10:29 A > I'd still parse the inital form into the session scope and justEverett, Al \(NIH/NIGMS\) [C] 03/02/07 10:52 A > you've saved into the form and got then got handedd back and using it inTom Chiverton 03/02/07 10:07 A Hi there I have a form which I am using to allow a user to enter data into an application. Basically I have it that the user enters the data and then I display the results back to the user - so that they can confirm what they have entered is complete and accurate. The use will then press submit on the confirmation page. I was trying to figure out the best approach to do this. Initially on the confirmation page I was going to: 1. Display the values entered by using <cfoutput>#form.dataentered#</cfoutput> 2. At the same time store a copy of the form data entered into session variables Then once the user pressed submit on the confirmation page I was going to take the values that had been stored in the session variables and use them to write to the database. I was thinking then - is this the best approach? Alternatively I could save the form data on the confirmation page to hidden values and then on the action page use the data in the hidden fields to write to the database. I look forward to hearing ideas and thoughts on the best approach. Regards P > Alternatively I could save the form data on the confirmation page to hidden values and then on the action page use the data in the > hidden fields to write to the database. That's probably how I would approach it. Uncle Ben's CF_EmbedFields custom tag would make this easy. http://www.adobe.com/cfusion/exchange/index.cfm?view=sn131&extID=1000001 #loc=en_us&view=sn131&extID=1000001&viewName=Adobe%20Exchange&avm=1 On Friday 02 Mar 2007, Everett, Al (NIH/NIGMS) [C] wrote: > That's probably how I would approach it. And of course, I don't need to warn you about just blindly taking the data you've saved into the form and got then got handedd back and using it in SQL do I ? -- Tom Chiverton Helping to autoschediastically initiate extensible experiences On: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. > And of course, I don't need to warn you about just blindly taking the data you've saved into the form and got then got handedd back and > using it in SQL do I ? Of course not. I am a zealous user of cfqueryparam. On Friday 02 Mar 2007, Everett, Al (NIH/NIGMS) [C] wrote: > Of course not. I am a zealous user of cfqueryparam. Excellent. I'd still parse the inital form into the session scope and just redisplay that though. -- Tom Chiverton Helping to assertively drive compelling solutions On: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. > I'd still parse the inital form into the session scope and just redisplay that though. Nothing wrong with either approach, of course. I had a couple of reasons for thinking form would be better. - I have to have a form for the configuration button anyway. - Sessions would have to be enabled. - If the user navigates away from the confirmation page I don't want the data to hang around. Of course, these might not apply in the original poster's case. As with so many things CF, there are multiple ways to accomplish the same thing. > you've saved into the form and got then got handedd back and using it in "you've saved into the form and then got handed back and using it in" Damn pubs :-) -- Tom Chiverton Helping to autoschediastically deploy customized channels On: http://thefalken.livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||