House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

checking for best approach

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Pete
03/02/2007 01:35 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Everett, Al \(NIH/NIGMS\) [C]
03/02/2007 09:41 AM

> 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Chiverton
03/02/2007 10:00 AM

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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Everett, Al \(NIH/NIGMS\) [C]
03/02/2007 10:04 AM

> 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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Chiverton
03/02/2007 10:29 AM

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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Everett, Al \(NIH/NIGMS\) [C]
03/02/2007 10:52 AM

> 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.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Tom Chiverton
03/02/2007 10:07 AM

> 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.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference